1 """The gogogate2 component."""
7 from .common
import get_data_update_coordinator
8 from .const
import DEVICE_TYPE_GOGOGATE2
10 PLATFORMS = [Platform.COVER, Platform.SENSOR]
14 """Do setup of Gogogate2."""
18 if CONF_DEVICE
not in entry.data:
21 CONF_DEVICE: DEVICE_TYPE_GOGOGATE2,
25 hass.config_entries.async_update_entry(entry, data=config_updates)
28 await data_update_coordinator.async_config_entry_first_refresh()
30 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
36 """Unload Gogogate2 config entry."""
37 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
DeviceDataUpdateCoordinator get_data_update_coordinator(HomeAssistant hass, ConfigEntry config_entry)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)