HomeAssistant-Mods / home-assistant-miele

Miele integration for Home assistant
138 stars 32 forks source link

Schedule fetching refresh token #164

Closed ebroder closed 10 months ago

ebroder commented 11 months ago

Because MieleOAuth.refresh_token is an async function, it does not actually run unless something awaits the resulting coroutine that it returns.

Based on noticing the following error in my logs:

/config/custom_components/miele/miele_at_home.py:177: RuntimeWarning: coroutine 'MieleOAuth.refresh_token' was never awaited self.refresh_token(hass)