Skip to content

Commit

Permalink
System Bridge - Add configuration URL (home-assistant#59320)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 authored Nov 8, 2021
1 parent 296f678 commit 875aecd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/system_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def __init__(
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
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/system_bridge/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 875aecd

Please sign in to comment.