1 """Support for Enigma2 devices."""
7 from .coordinator
import Enigma2UpdateCoordinator
9 type Enigma2ConfigEntry = ConfigEntry[Enigma2UpdateCoordinator]
11 PLATFORMS = [Platform.MEDIA_PLAYER]
15 """Set up Enigma2 from a config entry."""
18 await coordinator.async_config_entry_first_refresh()
19 entry.runtime_data = coordinator
21 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
26 """Unload a config entry."""
27 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
bool async_setup_entry(HomeAssistant hass, Enigma2ConfigEntry entry)