mirror of
https://github.com/home-assistant/core.git
synced 2025-11-23 17:56:59 +00:00
Add climate setup type hints [a-l] (#63278)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
"""CoolMasterNet platform to control of CoolMasteNet Climate Devices."""
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.components.climate import ClimateEntity
|
||||
@@ -13,9 +12,11 @@ from homeassistant.components.climate.const import (
|
||||
SUPPORT_FAN_MODE,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers.entity import DeviceInfo
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from .const import CONF_SUPPORTED_MODES, DATA_COORDINATOR, DATA_INFO, DOMAIN
|
||||
@@ -42,7 +43,11 @@ def _build_entity(coordinator, unit_id, unit, supported_modes, info):
|
||||
return CoolmasterClimate(coordinator, unit_id, unit, supported_modes, info)
|
||||
|
||||
|
||||
async def async_setup_entry(hass, config_entry, async_add_devices):
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
config_entry: ConfigEntry,
|
||||
async_add_devices: AddEntitiesCallback,
|
||||
) -> None:
|
||||
"""Set up the CoolMasterNet climate platform."""
|
||||
supported_modes = config_entry.data.get(CONF_SUPPORTED_MODES)
|
||||
info = hass.data[DOMAIN][config_entry.entry_id][DATA_INFO]
|
||||
|
||||
Reference in New Issue
Block a user