Add sensor setup type hints [w-z] (#63308)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
d8e7236502
commit
26819d1132
11 changed files with 106 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue