8000 Enable new registry rename for Insteon by wonderslug · Pull Request #17171 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Enable new registry rename for Insteon #17171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 7, 2018
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
0