-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
28 lines (17 loc) · 829 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
PLATFORMS = ["light"]
DOMAIN = "mystic_light"
# async def async_setup(hass, hass_config):
# # used only with GUI setup
# hass.data[DOMAIN] = {}
# return True
# async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
# await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
# if not entry.update_listeners:
# entry.add_update_listener(async_update_options)
# return True
# async def async_update_options(hass: HomeAssistant, entry: ConfigEntry):
# await hass.config_entries.async_reload(entry.entry_id)
# async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):
# return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)