Skip to content

Commit

Permalink
fix init (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdonenfeld authored Jul 1, 2024
1 parent cebe3cc commit cead925
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/aerogarden/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
}

ag = AerogardenAPI(hass, email, password, DEFAULT_HOST)
await ag.login()
if not ag.is_valid_login():
_LOGGER.error("Invalid login: %s" % ag.error)
return False
Expand Down

0 comments on commit cead925

Please sign in to comment.