Skip to content
Merged
Changes from all commits
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
10 changes: 10 additions & 0 deletions homeassistant/components/insteon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,16 @@ def group(self):
"""Return the INSTEON group that the entity responds to."""
return self._insteon_device_state.group

@property
def unique_id(self) -> str:
"""Return a unique ID."""
if self._insteon_device_state.group == 0x01:
uid = self._insteon_device.id
else:
uid = '{:s}_{:d}'.format(self._insteon_device.id,
self._insteon_device_state.group)
return uid

@property
def name(self):
"""Return the name of the node (used for Entity_ID)."""
Expand Down