Add Identity Attribute to enable areas (#62698)
This commit is contained in:
parent
a9ebeb2876
commit
408e9b2943
1 changed files with 5 additions and 0 deletions
|
@ -110,6 +110,11 @@ class DecoraWifiLight(LightEntity):
|
||||||
"""Return the display name of this switch."""
|
"""Return the display name of this switch."""
|
||||||
return self._switch.name
|
return self._switch.name
|
||||||
|
|
||||||
|
@property
|
||||||
|
def unique_id(self):
|
||||||
|
"""Return the ID of this light."""
|
||||||
|
return self._switch.serial
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def brightness(self):
|
def brightness(self):
|
||||||
"""Return the brightness of the dimmer switch."""
|
"""Return the brightness of the dimmer switch."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue