Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """Platform for the Escea fireplace."""
2 
3 from homeassistant.components.climate import DOMAIN as CLIMATE_DOMAIN
4 from homeassistant.config_entries import ConfigEntry
5 from homeassistant.core import HomeAssistant
6 
7 from .discovery import async_start_discovery_service, async_stop_discovery_service
8 
9 PLATFORMS = [CLIMATE_DOMAIN]
10 
11 
12 async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
13  """Set up from a config entry."""
15  await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
16  return True
17 
18 
19 async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
20  """Unload the config entry and stop discovery process."""
22  return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
None async_stop_discovery_service(HomeAssistant hass)
Definition: discovery.py:69
AbstractDiscoveryService async_start_discovery_service(HomeAssistant hass)
Definition: discovery.py:52
bool async_setup_entry(HomeAssistant hass, ConfigEntry entry)
Definition: __init__.py:12
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)
Definition: __init__.py:19