Huge restructure in progress

This commit is contained in:
2019-09-17 23:12:29 +02:00
parent 13f17af309
commit fdc509f402
8 changed files with 264 additions and 98 deletions

View File

@@ -21,13 +21,18 @@ async def async_setup(hass, config):
hass.data[DOMAIN] = {
DATA_DEVICES: {},
DATA_ALIASES: aliases,
DATA_ADDERS: [],
DATA_ADDERS: {},
}
await hass.helpers.discovery.async_load_platform("media_player", DOMAIN, {}, config)
await hass.helpers.discovery.async_load_platform("sensor", DOMAIN, {}, config)
await hass.helpers.discovery.async_load_platform("light", DOMAIN, {}, config)
setup_connection(hass)
await setup_connection(hass, config)
setup_service(hass)
return True