mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Check Honeywell Lyric token is valid before updating data (#59310)
This commit is contained in:
parent
46160c2a89
commit
5ec4a502b0
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user