Update error handling in update coordinator (#32452)
This commit is contained in:
parent
f62322cfb4
commit
b27c46750c
8 changed files with 58 additions and 67 deletions
|
@ -36,7 +36,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
|||
try:
|
||||
return await tankerkoenig.fetch_data()
|
||||
except LookupError:
|
||||
raise UpdateFailed
|
||||
raise UpdateFailed("Failed to fetch data")
|
||||
|
||||
coordinator = DataUpdateCoordinator(
|
||||
hass,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue