mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-10 16:44:28 +05:00
fix empty config while first setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user