Use DeviceInfo in system-bridge (#58582)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/58607/head
epenet 2021-10-28 14:31:30 +02:00 committed by GitHub
parent d7edb5b11c
commit 52b0107a77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -262,10 +262,10 @@ class SystemBridgeDeviceEntity(SystemBridgeEntity):
@property
def device_info(self) -> DeviceInfo:
"""Return device information about this System Bridge instance."""
return {
"connections": {(dr.CONNECTION_NETWORK_MAC, self._mac)},
"manufacturer": self._manufacturer,
"model": self._model,
"name": self._hostname,
"sw_version": self._version,
}
return DeviceInfo(
connections={(dr.CONNECTION_NETWORK_MAC, self._mac)},
manufacturer=self._manufacturer,
model=self._model,
name=self._hostname,
sw_version=self._version,
)