from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import ConfigType from .const import DOMAIN async def async_setup(hass: HomeAssistant, config: ConfigType): return True async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): hass.async_create_task( hass.config_entries.async_forward_entry_setup(entry, "sensor") ) return True async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry): return await hass.config_entries.async_forward_entry_unload(entry, "sensor")