1 """The Linear Garage Door integration."""
3 from __future__
import annotations
9 from .const
import DOMAIN
10 from .coordinator
import LinearUpdateCoordinator
12 PLATFORMS: list[Platform] = [Platform.COVER, Platform.LIGHT]
16 """Set up Linear Garage Door from a config entry."""
20 await coordinator.async_config_entry_first_refresh()
22 hass.data.setdefault(DOMAIN, {})[entry.entry_id] = coordinator
23 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
29 """Unload a config entry."""
30 if unload_ok := await hass.config_entries.async_unload_platforms(entry, PLATFORMS):
31 hass.data[DOMAIN].pop(entry.entry_id)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)