mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +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
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return device specific attributes."""
|
||||
return {
|
||||
"identifiers": {(DOMAIN, self._data[ATTR_SERIAL_NUMBER])},
|
||||
"manufacturer": MANUFACTURER,
|
||||
"model": self._data[ATTR_MODEL],
|
||||
"name": self._data.get(ATTR_DEVICE_NAME, DEFAULT_DEVICE_NAME),
|
||||
"sw_version": self._data[ATTR_FIRMWARE],
|
||||
}
|
||||
return DeviceInfo(
|
||||
identifiers={(DOMAIN, self._data[ATTR_SERIAL_NUMBER])},
|
||||
manufacturer=MANUFACTURER,
|
||||
model=self._data[ATTR_MODEL],
|
||||
name=self._data.get(ATTR_DEVICE_NAME, DEFAULT_DEVICE_NAME),
|
||||
sw_version=self._data[ATTR_FIRMWARE],
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user