mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Update systembridgeconnector to version 4.0.3 (#112608)
This commit is contained in:
parent
7926a76da5
commit
f8b05a0a81
@ -61,11 +61,12 @@ async def _validate_input(
|
|||||||
data[CONF_HOST],
|
data[CONF_HOST],
|
||||||
data[CONF_PORT],
|
data[CONF_PORT],
|
||||||
data[CONF_TOKEN],
|
data[CONF_TOKEN],
|
||||||
|
session=async_get_clientsession(hass),
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
async with asyncio.timeout(15):
|
async with asyncio.timeout(15):
|
||||||
await websocket_client.connect(session=async_get_clientsession(hass))
|
await websocket_client.connect()
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
websocket_client.listen(callback=_async_handle_module)
|
websocket_client.listen(callback=_async_handle_module)
|
||||||
)
|
)
|
||||||
|
@ -55,6 +55,7 @@ class SystemBridgeDataUpdateCoordinator(DataUpdateCoordinator[SystemBridgeData])
|
|||||||
entry.data[CONF_HOST],
|
entry.data[CONF_HOST],
|
||||||
entry.data[CONF_PORT],
|
entry.data[CONF_PORT],
|
||||||
entry.data[CONF_TOKEN],
|
entry.data[CONF_TOKEN],
|
||||||
|
session=async_get_clientsession(hass),
|
||||||
)
|
)
|
||||||
|
|
||||||
super().__init__(
|
super().__init__(
|
||||||
@ -106,7 +107,7 @@ class SystemBridgeDataUpdateCoordinator(DataUpdateCoordinator[SystemBridgeData])
|
|||||||
self,
|
self,
|
||||||
base: str,
|
base: str,
|
||||||
path: str,
|
path: str,
|
||||||
) -> MediaFile:
|
) -> MediaFile | None:
|
||||||
"""Get media file."""
|
"""Get media file."""
|
||||||
return await self.websocket_client.get_file(
|
return await self.websocket_client.get_file(
|
||||||
MediaGetFile(
|
MediaGetFile(
|
||||||
@ -168,9 +169,7 @@ class SystemBridgeDataUpdateCoordinator(DataUpdateCoordinator[SystemBridgeData])
|
|||||||
"""Use WebSocket for updates."""
|
"""Use WebSocket for updates."""
|
||||||
try:
|
try:
|
||||||
async with asyncio.timeout(20):
|
async with asyncio.timeout(20):
|
||||||
await self.websocket_client.connect(
|
await self.websocket_client.connect()
|
||||||
session=async_get_clientsession(self.hass),
|
|
||||||
)
|
|
||||||
|
|
||||||
self.hass.async_create_background_task(
|
self.hass.async_create_background_task(
|
||||||
self._listen_for_data(),
|
self._listen_for_data(),
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
"loggers": ["systembridgeconnector"],
|
"loggers": ["systembridgeconnector"],
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
"requirements": ["systembridgeconnector==4.0.2"],
|
"requirements": ["systembridgeconnector==4.0.3"],
|
||||||
"zeroconf": ["_system-bridge._tcp.local."]
|
"zeroconf": ["_system-bridge._tcp.local."]
|
||||||
}
|
}
|
||||||
|
@ -2647,7 +2647,7 @@ switchbot-api==2.0.0
|
|||||||
synology-srm==0.2.0
|
synology-srm==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.system_bridge
|
# homeassistant.components.system_bridge
|
||||||
systembridgeconnector==4.0.2
|
systembridgeconnector==4.0.3
|
||||||
|
|
||||||
# homeassistant.components.tailscale
|
# homeassistant.components.tailscale
|
||||||
tailscale==0.6.0
|
tailscale==0.6.0
|
||||||
|
@ -2036,7 +2036,7 @@ surepy==0.9.0
|
|||||||
switchbot-api==2.0.0
|
switchbot-api==2.0.0
|
||||||
|
|
||||||
# homeassistant.components.system_bridge
|
# homeassistant.components.system_bridge
|
||||||
systembridgeconnector==4.0.2
|
systembridgeconnector==4.0.3
|
||||||
|
|
||||||
# homeassistant.components.tailscale
|
# homeassistant.components.tailscale
|
||||||
tailscale==0.6.0
|
tailscale==0.6.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user