mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Use DeviceInfo type for Aurora ABB PowerOne (#95133)
This commit is contained in:
parent
b70a67404b
commit
185936deda
@ -47,10 +47,10 @@ class AuroraEntity(Entity):
|
|||||||
@property
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return device specific attributes."""
|
"""Return device specific attributes."""
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self._data[ATTR_SERIAL_NUMBER])},
|
identifiers={(DOMAIN, self._data[ATTR_SERIAL_NUMBER])},
|
||||||
"manufacturer": MANUFACTURER,
|
manufacturer=MANUFACTURER,
|
||||||
"model": self._data[ATTR_MODEL],
|
model=self._data[ATTR_MODEL],
|
||||||
"name": self._data.get(ATTR_DEVICE_NAME, DEFAULT_DEVICE_NAME),
|
name=self._data.get(ATTR_DEVICE_NAME, DEFAULT_DEVICE_NAME),
|
||||||
"sw_version": self._data[ATTR_FIRMWARE],
|
sw_version=self._data[ATTR_FIRMWARE],
|
||||||
}
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user