From 16b678e61cefde88db5c8f76914d3b4ddbb104ae Mon Sep 17 00:00:00 2001 From: rneubert <32850878+rneubert@users.noreply.github.com> Date: Mon, 27 May 2024 14:32:36 +0100 Subject: [PATCH] Replace deprecated aliases HomeAssistantType and ServiceCallType Fixes #369 HomeAssistantType was used from solis, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'solis' custom integration ServiceCallType was used from solis, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.ServiceCall instead, please report it to the author of the 'solis' custom integration --- custom_components/solis/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/solis/__init__.py b/custom_components/solis/__init__.py index 76e935a..c6fefc6 100644 --- a/custom_components/solis/__init__.py +++ b/custom_components/solis/__init__.py @@ -8,10 +8,10 @@ import voluptuous as vol from homeassistant.config_entries import ConfigEntry, SOURCE_IMPORT from homeassistant.const import Platform, ATTR_NAME, CONF_NAME -from homeassistant.core import HomeAssistant +from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue -from homeassistant.helpers.typing import ConfigType, HomeAssistantType, ServiceCallType +from homeassistant.helpers.typing import ConfigType from homeassistant.util import dt as dt_util from .const import ( @@ -34,7 +34,7 @@ PLATFORMS = [Platform.SENSOR] -async def async_setup(hass: HomeAssistantType, config: ConfigType): +async def async_setup(hass: HomeAssistant, config: ConfigType): """Set up the Solis component from configuration.yaml.""" if "sensor" not in config: