Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated aliases HomeAssistantType and ServiceCallType #374

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, ServiceCall is not used in this file so you can remove this too.

Suggested change
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.core import HomeAssistant

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