mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 13:51:43 +01:00
fix
This commit is contained in:
parent
cefbfb75bd
commit
c798e4d7f5
1 changed files with 3 additions and 3 deletions
|
@ -70,8 +70,6 @@ def _validate_time_present(config):
|
||||||
|
|
||||||
|
|
||||||
_DATETIME_SCHEMA = cv.ENTITY_BASE_SCHEMA.extend(
|
_DATETIME_SCHEMA = cv.ENTITY_BASE_SCHEMA.extend(
|
||||||
web_server.WEBSERVER_SORTING_SCHEMA,
|
|
||||||
cv.MQTT_COMMAND_COMPONENT_SCHEMA,
|
|
||||||
cv.Schema(
|
cv.Schema(
|
||||||
{
|
{
|
||||||
cv.Optional(CONF_ON_VALUE): automation.validate_automation(
|
cv.Optional(CONF_ON_VALUE): automation.validate_automation(
|
||||||
|
@ -81,7 +79,9 @@ _DATETIME_SCHEMA = cv.ENTITY_BASE_SCHEMA.extend(
|
||||||
),
|
),
|
||||||
cv.Optional(CONF_TIME_ID): cv.use_id(time.RealTimeClock),
|
cv.Optional(CONF_TIME_ID): cv.use_id(time.RealTimeClock),
|
||||||
}
|
}
|
||||||
),
|
)
|
||||||
|
.add_extra(web_server.WEBSERVER_SORTING_SCHEMA)
|
||||||
|
.add_extra(cv.MQTT_COMMAND_COMPONENT_SCHEMA),
|
||||||
).add_extra(_validate_time_present)
|
).add_extra(_validate_time_present)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue