mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
Correctly handle failed Atag update in coordinator (#35473)
* delay loading configentry if update failed * raise updatefailed on empty atagreply * Update __init__.py Co-authored-by: Boris Nelissen <borisnelissen91@gmail.com>
This commit is contained in:
@@ -163,9 +163,10 @@ class AtagDataUpdateCoordinator(DataUpdateCoordinator):
|
||||
with async_timeout.timeout(20):
|
||||
try:
|
||||
await self.atag.async_update()
|
||||
if not self.atag.sensordata:
|
||||
raise UpdateFailed("No data")
|
||||
except (AtagException) as error:
|
||||
raise UpdateFailed(error)
|
||||
|
||||
return self.atag.sensordata
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user