mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
commit
72b2943332
4 changed files with 7 additions and 3 deletions
|
@ -113,7 +113,9 @@ CLIMATE_SCHEMA = cv.ENTITY_BASE_SCHEMA.extend(cv.MQTT_COMMAND_COMPONENT_SCHEMA).
|
||||||
{
|
{
|
||||||
cv.Optional(CONF_MIN_TEMPERATURE): cv.temperature,
|
cv.Optional(CONF_MIN_TEMPERATURE): cv.temperature,
|
||||||
cv.Optional(CONF_MAX_TEMPERATURE): cv.temperature,
|
cv.Optional(CONF_MAX_TEMPERATURE): cv.temperature,
|
||||||
cv.Optional(CONF_TEMPERATURE_STEP): cv.temperature,
|
cv.Optional(CONF_TEMPERATURE_STEP): cv.float_with_unit(
|
||||||
|
"visual_temperature", "(°C|° C|°|C|° K|° K|K|°F|° F|F)?"
|
||||||
|
),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
cv.Optional(CONF_ACTION_STATE_TOPIC): cv.All(
|
cv.Optional(CONF_ACTION_STATE_TOPIC): cv.All(
|
||||||
|
|
|
@ -86,6 +86,8 @@ async def to_code(config):
|
||||||
if CORE.is_esp32:
|
if CORE.is_esp32:
|
||||||
cg.add_library("WiFiClientSecure", None)
|
cg.add_library("WiFiClientSecure", None)
|
||||||
cg.add_library("HTTPClient", None)
|
cg.add_library("HTTPClient", None)
|
||||||
|
if CORE.is_esp8266:
|
||||||
|
cg.add_library("ESP8266HTTPClient", None)
|
||||||
|
|
||||||
if CONF_TOUCH_SLEEP_TIMEOUT in config:
|
if CONF_TOUCH_SLEEP_TIMEOUT in config:
|
||||||
cg.add(var.set_touch_sleep_timeout_internal(config[CONF_TOUCH_SLEEP_TIMEOUT]))
|
cg.add(var.set_touch_sleep_timeout_internal(config[CONF_TOUCH_SLEEP_TIMEOUT]))
|
||||||
|
|
|
@ -1680,7 +1680,7 @@ def source_refresh(value: str):
|
||||||
if value.lower() == "always":
|
if value.lower() == "always":
|
||||||
return source_refresh("0s")
|
return source_refresh("0s")
|
||||||
if value.lower() == "never":
|
if value.lower() == "never":
|
||||||
return source_refresh("1000y")
|
return source_refresh("365250d")
|
||||||
return positive_time_period_seconds(value)
|
return positive_time_period_seconds(value)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Constants used by esphome."""
|
"""Constants used by esphome."""
|
||||||
|
|
||||||
__version__ = "2022.11.2"
|
__version__ = "2022.11.3"
|
||||||
|
|
||||||
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
ALLOWED_NAME_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789-_"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue