mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use DeviceInfo in twinkly (#58609)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d065ddc5c1
commit
7e9a67194a
@ -108,12 +108,12 @@ class TwinklyLight(LightEntity):
|
|||||||
def device_info(self) -> DeviceInfo | None:
|
def device_info(self) -> DeviceInfo | None:
|
||||||
"""Get device specific attributes."""
|
"""Get device specific attributes."""
|
||||||
return (
|
return (
|
||||||
{
|
DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self._id)},
|
identifiers={(DOMAIN, self._id)},
|
||||||
"name": self.name,
|
manufacturer="LEDWORKS",
|
||||||
"manufacturer": "LEDWORKS",
|
model=self.model,
|
||||||
"model": self.model,
|
name=self.name,
|
||||||
}
|
)
|
||||||
if self._id
|
if self._id
|
||||||
else None # device_info is available only for entities configured from the UI
|
else None # device_info is available only for entities configured from the UI
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user