1 """The Garages Amsterdam integration."""
3 from __future__
import annotations
5 from odp_amsterdam
import ODPAmsterdam
12 from .coordinator
import GaragesAmsterdamDataUpdateCoordinator
14 PLATFORMS: list[Platform] = [Platform.BINARY_SENSOR, Platform.SENSOR]
16 type GaragesAmsterdamConfigEntry = ConfigEntry[GaragesAmsterdamDataUpdateCoordinator]
20 hass: HomeAssistant, entry: GaragesAmsterdamConfigEntry
22 """Set up Garages Amsterdam from a config entry."""
26 await coordinator.async_config_entry_first_refresh()
28 entry.runtime_data = coordinator
30 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
35 hass: HomeAssistant, entry: GaragesAmsterdamConfigEntry
37 """Unload Garages Amsterdam config entry."""
38 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_setup_entry(HomeAssistant hass, GaragesAmsterdamConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, GaragesAmsterdamConfigEntry entry)
aiohttp.ClientSession async_get_clientsession(HomeAssistant hass, bool verify_ssl=True, socket.AddressFamily family=socket.AF_UNSPEC, ssl_util.SSLCipherList ssl_cipher=ssl_util.SSLCipherList.PYTHON_DEFAULT)