mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Implement device_info for LutronCasetaDevice (#36706)
This commit is contained in:
parent
4412ce3b86
commit
b78ad7c2b8
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user