1 """The SimpleFIN integration."""
3 from __future__
import annotations
5 from simplefin4py
import SimpleFin
11 from .const
import CONF_ACCESS_URL
12 from .coordinator
import SimpleFinDataUpdateCoordinator
14 PLATFORMS: list[str] = [
15 Platform.BINARY_SENSOR,
20 type SimpleFinConfigEntry = ConfigEntry[SimpleFinDataUpdateCoordinator]
24 """Set up from a config entry."""
25 access_url = entry.data[CONF_ACCESS_URL]
26 sf_client = SimpleFin(access_url)
28 await sf_coordinator.async_config_entry_first_refresh()
29 entry.runtime_data = sf_coordinator
30 await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
35 """Unload a config entry."""
36 return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
bool async_setup_entry(HomeAssistant hass, SimpleFinConfigEntry entry)
bool async_unload_entry(HomeAssistant hass, ConfigEntry entry)