mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add unique_id to homematic_cloud (#16828)
* add unique_id * add docstring and trigger travis
This commit is contained in:
parent
90197b6ec9
commit
069b819679
@ -61,6 +61,11 @@ class HomematicipGenericDevice(Entity):
|
||||
"""Device available."""
|
||||
return not self._device.unreach
|
||||
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return a unique ID."""
|
||||
return "{}_{}".format(self.__class__.__name__, self._device.id)
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
"""Return the icon."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user