Add Identity Attribute to enable areas (#62698)

pull/68924/head
Jeff Basso 2022-03-30 14:18:00 -05:00 committed by GitHub
parent a9ebeb2876
commit 408e9b2943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -110,6 +110,11 @@ class DecoraWifiLight(LightEntity):
"""Return the display name of this switch."""
return self._switch.name
@property
def unique_id(self):
"""Return the ID of this light."""
return self._switch.serial
@property
def brightness(self):
"""Return the brightness of the dimmer switch."""