Add sensor setup type hints [w-z] (#63308)

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2022-01-03 18:45:33 +01:00 committed by GitHub
parent d8e7236502
commit 26819d1132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 106 additions and 16 deletions

View file

@ -1,13 +1,14 @@
"""Sensor platform support for wiffi devices."""
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorStateClass,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import DEGREE, PRESSURE_MBAR, TEMP_CELSIUS
from homeassistant.core import callback
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from . import WiffiEntity
from .const import CREATE_ENTITY_SIGNAL
@ -35,7 +36,11 @@ UOM_MAP = {
}
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 platform for a new integration.
Called by the HA framework after async_forward_entry_setup has been called