Use DeviceInfo type for Aurora ABB PowerOne (#95133)

This commit is contained in:
Joost Lekkerkerker 2023-06-26 23:36:06 +02:00 committed by GitHub
parent b70a67404b
commit 185936deda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],
} )