Compare commits

...

1 Commits

Author SHA1 Message Date
Andrey Viktorov
687e80f729 fix empty config while first setup 2021-03-29 19:54:48 +03:00

View File

@@ -91,6 +91,8 @@ class MegaD:
**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