From 875aecd4e20b08dca5d6bf6838b16843516442e5 Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Mon, 8 Nov 2021 17:09:08 +0000 Subject: [PATCH] System Bridge - Add configuration URL (#59320) --- homeassistant/components/system_bridge/__init__.py | 2 ++ homeassistant/components/system_bridge/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/system_bridge/__init__.py b/homeassistant/components/system_bridge/__init__.py index faea8b8418c..b3f481141b8 100644 --- a/homeassistant/components/system_bridge/__init__.py +++ b/homeassistant/components/system_bridge/__init__.py @@ -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, diff --git a/homeassistant/components/system_bridge/manifest.json b/homeassistant/components/system_bridge/manifest.json index 0a6bca604e7..cd4ee5a51a1 100644 --- a/homeassistant/components/system_bridge/manifest.json +++ b/homeassistant/components/system_bridge/manifest.json @@ -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"], diff --git a/requirements_all.txt b/requirements_all.txt index 977264c1d73..a775f7887de 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index e4b6fe6f708..9b6941bc279 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -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