2019-10-23 06:31:43 +00:00
|
|
|
"""Solar-Log integration."""
|
|
|
|
from homeassistant.config_entries import ConfigEntry
|
2021-04-22 14:21:38 +00:00
|
|
|
from homeassistant.core import HomeAssistant
|
2019-10-23 06:31:43 +00:00
|
|
|
|
2021-04-27 20:10:04 +00:00
|
|
|
PLATFORMS = ["sensor"]
|
|
|
|
|
2019-10-23 06:31:43 +00:00
|
|
|
|
2021-04-22 14:21:38 +00:00
|
|
|
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
|
2019-10-23 06:31:43 +00:00
|
|
|
"""Set up a config entry for solarlog."""
|
2021-04-27 20:10:04 +00:00
|
|
|
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
|
2019-10-23 06:31:43 +00:00
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
async def async_unload_entry(hass, entry):
|
|
|
|
"""Unload a config entry."""
|
2021-04-27 20:10:04 +00:00
|
|
|
return await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|