1 """Support for Elgato Lights."""
7 from .coordinator
import ElgatoDataUpdateCoordinator
9 PLATFORMS = [Platform.BUTTON, Platform.LIGHT, Platform.SENSOR, Platform.SWITCH]
11 type ElgatorConfigEntry = ConfigEntry[ElgatoDataUpdateCoordinator]
15 """Set up Elgato Light from a config entry."""
17 await coordinator.async_config_entry_first_refresh()
19 entry.runtime_data = coordinator
20 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
26 """Unload Elgato Light config entry."""
27 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_setup_entry(HomeAssistant hass, ElgatorConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, ElgatorConfigEntry entry)