mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +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 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
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user