Add setup type hints (part 3) (#63961)
* Drop return value from vesync * Add setup type hints to netgear_lte * Drop return value from hyperion * Add setup type hints to opentherm_gw Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
0d58887bc0
commit
ec1b45c922
7 changed files with 42 additions and 15 deletions
|
@ -3,10 +3,12 @@ import logging
|
|||
from pprint import pformat
|
||||
|
||||
from homeassistant.components.sensor import ENTITY_ID_FORMAT, SensorEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_ID
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||
from homeassistant.helpers.entity import DeviceInfo, async_generate_entity_id
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.entity_registry import async_get_registry
|
||||
|
||||
from . import DOMAIN
|
||||
|
@ -21,7 +23,11 @@ from .const import (
|
|||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
config_entry: ConfigEntry,
|
||||
async_add_entities: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the OpenTherm Gateway sensors."""
|
||||
sensors = []
|
||||
deprecated_sensors = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue