mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Catch an extra error for Ring (#32477)
This commit is contained in:
parent
0c0d4c460f
commit
c7d983fd44
@ -205,6 +205,11 @@ class GlobalDataUpdater:
|
|||||||
"Time out fetching Ring %s data", self.data_type,
|
"Time out fetching Ring %s data", self.data_type,
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
except requests.RequestException as err:
|
||||||
|
_LOGGER.warning(
|
||||||
|
"Error fetching Ring %s data: %s", self.data_type, err,
|
||||||
|
)
|
||||||
|
return
|
||||||
|
|
||||||
for update_callback in self.listeners:
|
for update_callback in self.listeners:
|
||||||
update_callback()
|
update_callback()
|
||||||
@ -290,6 +295,14 @@ class DeviceDataUpdater:
|
|||||||
device_id,
|
device_id,
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
except requests.RequestException as err:
|
||||||
|
_LOGGER.warning(
|
||||||
|
"Error fetching Ring %s data for device %s: %s",
|
||||||
|
self.data_type,
|
||||||
|
device_id,
|
||||||
|
err,
|
||||||
|
)
|
||||||
|
continue
|
||||||
|
|
||||||
for update_callback in info["update_callbacks"]:
|
for update_callback in info["update_callbacks"]:
|
||||||
self.hass.loop.call_soon_threadsafe(update_callback, data)
|
self.hass.loop.call_soon_threadsafe(update_callback, data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user