diff --git a/homeassistant/components/daikin/climate.py b/homeassistant/components/daikin/climate.py index 34ae8701d5d..fc54d4b0427 100644 --- a/homeassistant/components/daikin/climate.py +++ b/homeassistant/components/daikin/climate.py @@ -12,7 +12,7 @@ from homeassistant.components.climate import ( ATTR_HVAC_MODE, ATTR_PRESET_MODE, ATTR_SWING_MODE, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, PRESET_AWAY, PRESET_BOOST, PRESET_ECO, @@ -45,7 +45,7 @@ from .const import ( _LOGGER = logging.getLogger(__name__) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( {vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_NAME): cv.string} ) diff --git a/homeassistant/components/ephember/climate.py b/homeassistant/components/ephember/climate.py index 89d84a2c6fd..44e5986970d 100644 --- a/homeassistant/components/ephember/climate.py +++ b/homeassistant/components/ephember/climate.py @@ -20,7 +20,7 @@ from pyephember.pyephember import ( import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACAction, @@ -44,7 +44,7 @@ SCAN_INTERVAL = timedelta(seconds=120) OPERATION_LIST = [HVACMode.HEAT_COOL, HVACMode.HEAT, HVACMode.OFF] -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( {vol.Required(CONF_USERNAME): cv.string, vol.Required(CONF_PASSWORD): cv.string} ) diff --git a/homeassistant/components/flexit/climate.py b/homeassistant/components/flexit/climate.py index c15c74b4aac..d456fbef6fc 100644 --- a/homeassistant/components/flexit/climate.py +++ b/homeassistant/components/flexit/climate.py @@ -8,7 +8,7 @@ from typing import Any import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACAction, @@ -36,7 +36,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType CALL_TYPE_WRITE_REGISTER = "write_register" CONF_HUB = "hub" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Optional(CONF_HUB, default=DEFAULT_HUB): cv.string, vol.Required(CONF_SLAVE): vol.All(int, vol.Range(min=0, max=32)), diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 91ff1af122d..c080e8b82d7 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -13,7 +13,7 @@ import voluptuous as vol from homeassistant.components.climate import ( ATTR_PRESET_MODE, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, PRESET_ACTIVITY, PRESET_AWAY, PRESET_COMFORT, @@ -125,7 +125,7 @@ PLATFORM_SCHEMA_COMMON = vol.Schema( ) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(PLATFORM_SCHEMA_COMMON.schema) +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend(PLATFORM_SCHEMA_COMMON.schema) async def async_setup_entry( diff --git a/homeassistant/components/heatmiser/climate.py b/homeassistant/components/heatmiser/climate.py index 8639d1f953e..f9f0cfacf60 100644 --- a/homeassistant/components/heatmiser/climate.py +++ b/homeassistant/components/heatmiser/climate.py @@ -9,7 +9,7 @@ from heatmiserV3 import connection, heatmiser import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACMode, @@ -38,7 +38,7 @@ TSTATS_SCHEMA = vol.Schema( ) ) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_HOST): cv.string, vol.Required(CONF_PORT): cv.string, diff --git a/homeassistant/components/intesishome/climate.py b/homeassistant/components/intesishome/climate.py index 7a504d7aced..82b653a34c7 100644 --- a/homeassistant/components/intesishome/climate.py +++ b/homeassistant/components/intesishome/climate.py @@ -11,7 +11,7 @@ import voluptuous as vol from homeassistant.components.climate import ( ATTR_HVAC_MODE, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, PRESET_BOOST, PRESET_COMFORT, PRESET_ECO, @@ -44,7 +44,7 @@ IH_DEVICE_INTESISHOME = "IntesisHome" IH_DEVICE_AIRCONWITHME = "airconwithme" IH_DEVICE_ANYWAIR = "anywair" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_USERNAME): cv.string, vol.Required(CONF_PASSWORD): cv.string, diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py index 6c4b97ca450..cf16f1ba87e 100644 --- a/homeassistant/components/oem/climate.py +++ b/homeassistant/components/oem/climate.py @@ -9,7 +9,7 @@ import requests import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACAction, @@ -29,7 +29,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_NAME, default="Thermostat"): cv.string, diff --git a/homeassistant/components/proliphix/climate.py b/homeassistant/components/proliphix/climate.py index 23ccc03a038..18b974800a3 100644 --- a/homeassistant/components/proliphix/climate.py +++ b/homeassistant/components/proliphix/climate.py @@ -8,7 +8,7 @@ import proliphix import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACAction, @@ -29,7 +29,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType ATTR_FAN = "fan" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_HOST): cv.string, vol.Required(CONF_USERNAME): cv.string, diff --git a/homeassistant/components/schluter/climate.py b/homeassistant/components/schluter/climate.py index 74e2d9a0194..6f0a49e6eb9 100644 --- a/homeassistant/components/schluter/climate.py +++ b/homeassistant/components/schluter/climate.py @@ -9,7 +9,7 @@ from requests import RequestException import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, SCAN_INTERVAL, ClimateEntity, ClimateEntityFeature, @@ -29,7 +29,7 @@ from homeassistant.helpers.update_coordinator import ( from . import DATA_SCHLUTER_API, DATA_SCHLUTER_SESSION, DOMAIN _LOGGER = logging.getLogger(__name__) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( {vol.Optional(CONF_SCAN_INTERVAL): vol.All(vol.Coerce(int), vol.Range(min=1))} ) diff --git a/homeassistant/components/tfiac/climate.py b/homeassistant/components/tfiac/climate.py index 74d2c3fbe7e..81517a6f1f5 100644 --- a/homeassistant/components/tfiac/climate.py +++ b/homeassistant/components/tfiac/climate.py @@ -15,7 +15,7 @@ from homeassistant.components.climate import ( FAN_HIGH, FAN_LOW, FAN_MEDIUM, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, SWING_BOTH, SWING_HORIZONTAL, SWING_OFF, @@ -32,7 +32,7 @@ from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType SCAN_INTERVAL = timedelta(seconds=60) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string}) +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string}) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/touchline/climate.py b/homeassistant/components/touchline/climate.py index 5b1c52534c5..7b14404ee34 100644 --- a/homeassistant/components/touchline/climate.py +++ b/homeassistant/components/touchline/climate.py @@ -8,7 +8,7 @@ from pytouchline import PyTouchline import voluptuous as vol from homeassistant.components.climate import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACMode, @@ -41,7 +41,7 @@ TOUCHLINE_HA_PRESETS = { for preset, settings in PRESET_MODES.items() } -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string}) +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend({vol.Required(CONF_HOST): cv.string}) def setup_platform( diff --git a/homeassistant/components/venstar/climate.py b/homeassistant/components/venstar/climate.py index f47cf59be9c..ea833dc3183 100644 --- a/homeassistant/components/venstar/climate.py +++ b/homeassistant/components/venstar/climate.py @@ -10,7 +10,7 @@ from homeassistant.components.climate import ( ATTR_TARGET_TEMP_LOW, FAN_AUTO, FAN_ON, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, PRESET_AWAY, PRESET_NONE, ClimateEntity, @@ -48,7 +48,7 @@ from .const import ( ) from .coordinator import VenstarDataUpdateCoordinator -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_PASSWORD): cv.string, diff --git a/homeassistant/components/zhong_hong/climate.py b/homeassistant/components/zhong_hong/climate.py index b0a8f02a2f3..eaf00b5432f 100644 --- a/homeassistant/components/zhong_hong/climate.py +++ b/homeassistant/components/zhong_hong/climate.py @@ -11,7 +11,7 @@ from zhong_hong_hvac.hvac import HVAC as ZhongHongHVAC from homeassistant.components.climate import ( ATTR_HVAC_MODE, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CLIMATE_PLATFORM_SCHEMA, ClimateEntity, ClimateEntityFeature, HVACMode, @@ -42,7 +42,7 @@ DEFAULT_GATEWAY_ADDRRESS = 1 SIGNAL_DEVICE_ADDED = "zhong_hong_device_added" SIGNAL_ZHONG_HONG_HUB_START = "zhong_hong_hub_start" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CLIMATE_PLATFORM_SCHEMA.extend( { vol.Required(CONF_HOST): cv.string, vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,