mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix broken reconnect capability of fritzbox_callmonitor (#100526)
This commit is contained in:
parent
2794ab1782
commit
dd1dc52994
@ -7,7 +7,7 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/fritz",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["fritzconnection"],
|
||||
"requirements": ["fritzconnection[qr]==1.12.2", "xmltodict==0.13.0"],
|
||||
"requirements": ["fritzconnection[qr]==1.13.2", "xmltodict==0.13.0"],
|
||||
"ssdp": [
|
||||
{
|
||||
"st": "urn:schemas-upnp-org:device:fritzbox:1"
|
||||
|
@ -7,5 +7,5 @@
|
||||
"integration_type": "device",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["fritzconnection"],
|
||||
"requirements": ["fritzconnection[qr]==1.12.2"]
|
||||
"requirements": ["fritzconnection[qr]==1.13.2"]
|
||||
}
|
||||
|
@ -192,7 +192,11 @@ class FritzBoxCallMonitor:
|
||||
_LOGGER.debug("Setting up socket connection")
|
||||
try:
|
||||
self.connection = FritzMonitor(address=self.host, port=self.port)
|
||||
kwargs: dict[str, Any] = {"event_queue": self.connection.start()}
|
||||
kwargs: dict[str, Any] = {
|
||||
"event_queue": self.connection.start(
|
||||
reconnect_tries=50, reconnect_delay=120
|
||||
)
|
||||
}
|
||||
Thread(target=self._process_events, kwargs=kwargs).start()
|
||||
except OSError as err:
|
||||
self.connection = None
|
||||
|
@ -834,7 +834,7 @@ freesms==0.2.0
|
||||
|
||||
# homeassistant.components.fritz
|
||||
# homeassistant.components.fritzbox_callmonitor
|
||||
fritzconnection[qr]==1.12.2
|
||||
fritzconnection[qr]==1.13.2
|
||||
|
||||
# homeassistant.components.google_translate
|
||||
gTTS==2.2.4
|
||||
|
@ -656,7 +656,7 @@ freebox-api==1.1.0
|
||||
|
||||
# homeassistant.components.fritz
|
||||
# homeassistant.components.fritzbox_callmonitor
|
||||
fritzconnection[qr]==1.12.2
|
||||
fritzconnection[qr]==1.13.2
|
||||
|
||||
# homeassistant.components.google_translate
|
||||
gTTS==2.2.4
|
||||
|
Loading…
x
Reference in New Issue
Block a user