mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Add unique ID to ecobee sensor
This commit is contained in:
parent
4605742bb7
commit
4840dd297a
@ -63,6 +63,11 @@ class EcobeeSensor(Entity):
|
|||||||
""" Returns the state of the device. """
|
""" Returns the state of the device. """
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self):
|
||||||
|
"""Unique id of this sensor."""
|
||||||
|
return "sensor_ecobee_{}_{}".format(self.type, self.index)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def unit_of_measurement(self):
|
def unit_of_measurement(self):
|
||||||
""" Unit of measurement this sensor expresses itself in. """
|
""" Unit of measurement this sensor expresses itself in. """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user