Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Fix reconnection after failed authentication
Browse files Browse the repository at this point in the history
See HandyHat#14 for discussion of issue
  • Loading branch information
ColinRobbins committed Sep 25, 2021
1 parent ac82696 commit 1c22d55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/hildebrandglow_dcc/glow.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def authenticate(cls, app_id: str, username: str, password: str) -> Dict[str, An
pprint(data)
raise InvalidAuth

async def handle_failed_auth(self, config: ConfigEntry, hass: HomeAssistant) -> None:
@classmethod
async def handle_failed_auth(cls, config: ConfigEntry, hass: HomeAssistant) -> None:
"""Attempt to refresh the current Glow token."""
glow_auth = await hass.async_add_executor_job(
Glow.authenticate,
Expand Down

0 comments on commit 1c22d55

Please sign in to comment.