Skip to content
Snippets Groups Projects
Unverified Commit 52b0107a authored by epenet's avatar epenet Committed by GitHub
Browse files

Use DeviceInfo in system-bridge (#58582)

parent d7edb5b1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment