Update systembridgeconnector to 3.3.2 (#74701)

pull/74926/head
Aidan Timson 2022-07-09 18:55:33 +01:00 committed by Paulus Schoutsen
parent f5d18108d0
commit 59471a6fbd
4 changed files with 7 additions and 6 deletions

View File

@ -93,7 +93,7 @@ class SystemBridgeDataUpdateCoordinator(
if not self.websocket_client.connected:
await self._setup_websocket()
await self.websocket_client.get_data(modules)
self.hass.async_create_task(self.websocket_client.get_data(modules))
async def async_handle_module(
self,
@ -107,9 +107,7 @@ class SystemBridgeDataUpdateCoordinator(
async def _listen_for_data(self) -> None:
"""Listen for events from the WebSocket."""
try:
await self.websocket_client.register_data_listener(MODULES)
await self.websocket_client.listen(callback=self.async_handle_module)
except AuthenticationException as exception:
self.last_update_success = False
@ -175,6 +173,9 @@ class SystemBridgeDataUpdateCoordinator(
self.async_update_listeners()
self.hass.async_create_task(self._listen_for_data())
await self.websocket_client.register_data_listener(MODULES)
self.last_update_success = True
self.async_update_listeners()

View File

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

View File

@ -2268,7 +2268,7 @@ swisshydrodata==0.1.0
synology-srm==0.2.0
# homeassistant.components.system_bridge
systembridgeconnector==3.1.5
systembridgeconnector==3.3.2
# homeassistant.components.tailscale
tailscale==0.2.0

View File

@ -1513,7 +1513,7 @@ sunwatcher==0.2.1
surepy==0.7.2
# homeassistant.components.system_bridge
systembridgeconnector==3.1.5
systembridgeconnector==3.3.2
# homeassistant.components.tailscale
tailscale==0.2.0