Use DeviceInfo type for Aurora ABB PowerOne (#95133)
This commit is contained in:
parent
b70a67404b
commit
185936deda
1 changed files with 7 additions and 7 deletions
|
@ -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…
Add table
Reference in a new issue