Implement device_info for LutronCasetaDevice (#36706)
This commit is contained in:
1 parent
4412ce3b86
commit
b78ad7c2b8
1 file changed
+10
@@ -127,6 +127,16 @@ class LutronCasetaDevice(Entity):
|
|||||||
"""Return the unique ID of the device (serial)."""
|
"""Return the unique ID of the device (serial)."""
|
||||||
return str(self.serial)
|
return str(self.serial)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_info(self):
|
||||||
|
"""Return the device info."""
|
||||||
|
return {
|
||||||
|
"identifiers": {(DOMAIN, self.serial)},
|
||||||
|
"name": self.name,
|
||||||
|
"manufacturer": "Lutron",
|
||||||
|
"model": self._device["model"],
|
||||||
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the state attributes."""
|
"""Return the state attributes."""
|
||||||
|
|||||||
Reference in new issue
Block a user