diff --git a/homeassistant/components/wirelesstag/binary_sensor.py b/homeassistant/components/wirelesstag/binary_sensor.py index 82c3a25590adf..711c2987735b9 100644 --- a/homeassistant/components/wirelesstag/binary_sensor.py +++ b/homeassistant/components/wirelesstag/binary_sensor.py @@ -100,6 +100,7 @@ def __init__(self, api, tag, sensor_type): super().__init__(api, tag) self._sensor_type = sensor_type self._name = f"{self._tag.name} {self.event.human_readable_name}" + self._attr_unique_id = f"{self.tag_id}_{self._sensor_type}" async def async_added_to_hass(self) -> None: """Register callbacks.""" diff --git a/homeassistant/components/wirelesstag/sensor.py b/homeassistant/components/wirelesstag/sensor.py index e4505e59666a0..fd9a7898f920f 100644 --- a/homeassistant/components/wirelesstag/sensor.py +++ b/homeassistant/components/wirelesstag/sensor.py @@ -100,6 +100,7 @@ def __init__(self, api, tag, description): self._sensor_type = description.key self.entity_description = description self._name = self._tag.name + self._attr_unique_id = f"{self.tag_id}_{self._sensor_type}" # I want to see entity_id as: # sensor.wirelesstag_bedroom_temperature diff --git a/homeassistant/components/wirelesstag/switch.py b/homeassistant/components/wirelesstag/switch.py index 26c7d9384a6b6..df0f72aca186c 100644 --- a/homeassistant/components/wirelesstag/switch.py +++ b/homeassistant/components/wirelesstag/switch.py @@ -82,6 +82,7 @@ def __init__(self, api, tag, description: SwitchEntityDescription) -> None: super().__init__(api, tag) self.entity_description = description self._name = f"{self._tag.name} {description.name}" + self._attr_unique_id = f"{self.tag_id}_{description.key}" def turn_on(self, **kwargs: Any) -> None: """Turn on the switch."""