System Bridge - Add configuration URL (#59320)

This commit is contained in:
Aidan Timson 2021-11-08 17:09:08 +00:00 committed by GitHub
parent 296f678d52
commit 875aecd4e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -239,6 +239,7 @@ class SystemBridgeEntity(CoordinatorEntity):
bridge: Bridge = coordinator.data
self._key = f"{bridge.information.host}_{key}"
self._name = f"{bridge.information.host} {name}"
self._configuration_url = bridge.get_configuration_url()
self._hostname = bridge.information.host
self._mac = bridge.information.mac
self._manufacturer = bridge.system.system.manufacturer
@ -263,6 +264,7 @@ class SystemBridgeDeviceEntity(SystemBridgeEntity):
def device_info(self) -> DeviceInfo:
"""Return device information about this System Bridge instance."""
return DeviceInfo(
configuration_url=self._configuration_url,
connections={(dr.CONNECTION_NETWORK_MAC, self._mac)},
manufacturer=self._manufacturer,
model=self._model,

View file

@ -3,7 +3,7 @@
"name": "System Bridge",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/system_bridge",
"requirements": ["systembridge==2.2.1"],
"requirements": ["systembridge==2.2.3"],
"codeowners": ["@timmo001"],
"zeroconf": ["_system-bridge._udp.local."],
"after_dependencies": ["zeroconf"],

View file

@ -2269,7 +2269,7 @@ swisshydrodata==0.1.0
synology-srm==0.2.0
# homeassistant.components.system_bridge
systembridge==2.2.1
systembridge==2.2.3
# homeassistant.components.tahoma
tahoma-api==0.0.16

View file

@ -1330,7 +1330,7 @@ sunwatcher==0.2.1
surepy==0.7.2
# homeassistant.components.system_bridge
systembridge==2.2.1
systembridge==2.2.3
# homeassistant.components.tellduslive
tellduslive==0.10.11