Skip to content

Commit

Permalink
Replace deprecated aliases HomeAssistantType and ServiceCallType
Browse files Browse the repository at this point in the history
Fixes hultenvp#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
  • Loading branch information
rneubert authored May 27, 2024
1 parent c18f770 commit 16b678e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/solis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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:
Expand Down

0 comments on commit 16b678e

Please sign in to comment.