Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions homeassistant/components/wirelesstag/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"{WIRELESSTAG_DOMAIN}_{self.tag_id}_{self._sensor_type}"
Comment thread
davecpearce marked this conversation as resolved.
Outdated

async def async_added_to_hass(self) -> None:
"""Register callbacks."""
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/wirelesstag/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"{WIRELESSTAG_DOMAIN}_{self.tag_id}_{self._sensor_type}"
Comment thread
davecpearce marked this conversation as resolved.
Outdated

# I want to see entity_id as:
# sensor.wirelesstag_bedroom_temperature
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/wirelesstag/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"{WIRELESSTAG_DOMAIN}_{self.tag_id}_{description.key}"
Comment thread
davecpearce marked this conversation as resolved.
Outdated

def turn_on(self, **kwargs: Any) -> None:
"""Turn on the switch."""
Expand Down