Skip to content

Commit

Permalink
fix empty config while first setup
Browse files Browse the repository at this point in the history
  • Loading branch information
andvikt committed Mar 29, 2021
1 parent 7d777c9 commit 687e80f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/mega/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def __init__(
**kwargs,
):
"""Initialize."""
if DOMAIN not in hass.data:
hass.data[DOMAIN] = {}
if config is not None:
lg.debug(f'load config: %s', config.data)
self.config = config
Expand Down

0 comments on commit 687e80f

Please sign in to comment.