Add climate setup type hints [m-z] (#63279)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
39df04495d
commit
6f4b25950c
25 changed files with 223 additions and 32 deletions
|
@ -1,4 +1,6 @@
|
|||
"""Support for Radio Thermostat wifi-enabled home thermostats."""
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from socket import timeout
|
||||
|
||||
|
@ -29,7 +31,10 @@ from homeassistant.const import (
|
|||
STATE_ON,
|
||||
TEMP_FAHRENHEIT,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -103,7 +108,12 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE | SUPPORT_FAN_MODE | SUPPORT_PRESET_MODE
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
def setup_platform(
|
||||
hass: HomeAssistant,
|
||||
config: ConfigType,
|
||||
add_entities: AddEntitiesCallback,
|
||||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the Radio Thermostat."""
|
||||
hosts = []
|
||||
if CONF_HOST in config:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue