Fix yeelight binary sensor unique ID (#42562)
This commit is contained in:
parent
d9d21ab05e
commit
f499187835
2 changed files with 10 additions and 2 deletions
|
@ -34,6 +34,11 @@ class YeelightNightlightModeSensor(YeelightEntity, BinarySensorEntity):
|
|||
)
|
||||
)
|
||||
|
||||
@property
|
||||
def unique_id(self) -> str:
|
||||
"""Return a unique ID."""
|
||||
return f"{self._unique_id}-nightlight_sensor"
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the sensor."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue