mirror of
https://github.com/home-assistant/core.git
synced 2026-06-08 08:27:18 +01:00
Check Honeywell Lyric token is valid before updating data (#59310)
This commit is contained in:
@@ -93,6 +93,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
async def async_update_data() -> Lyric:
|
||||
"""Fetch data from Lyric."""
|
||||
await oauth_session.async_ensure_token_valid()
|
||||
try:
|
||||
async with async_timeout.timeout(60):
|
||||
await lyric.get_locations()
|
||||
|
||||
Reference in New Issue
Block a user