Clean up superfluous integration setup - part 6 (#49298)
This commit is contained in:
parent
af80ca6795
commit
7264c95217
38 changed files with 22 additions and 199 deletions
|
@ -24,14 +24,6 @@ CONFIG_SCHEMA = cv.deprecated(DOMAIN)
|
|||
DEFAULT_UPDATE_RATE = 120
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: dict) -> bool:
|
||||
"""Set up the nexia component from YAML."""
|
||||
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
|
||||
return True
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
||||
"""Configure the base Nexia device for Home Assistant."""
|
||||
|
||||
|
@ -75,6 +67,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
|||
update_interval=timedelta(seconds=DEFAULT_UPDATE_RATE),
|
||||
)
|
||||
|
||||
hass.data.setdefault(DOMAIN, {})
|
||||
hass.data[DOMAIN][entry.entry_id] = {
|
||||
NEXIA_DEVICE: nexia_home,
|
||||
UPDATE_COORDINATOR: coordinator,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue