Mark before/after times as required for times of the day config flow (#68789)

This commit is contained in:
Erik Montnemery 2022-03-29 13:21:58 +02:00 committed by GitHub
parent c3d937fb0f
commit d81ee9b2da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ from .const import CONF_AFTER_TIME, CONF_BEFORE_TIME, DOMAIN
OPTIONS_SCHEMA = vol.Schema(
{
vol.Optional(CONF_AFTER_TIME): selector.selector({"time": {}}),
vol.Optional(CONF_BEFORE_TIME): selector.selector({"time": {}}),
vol.Required(CONF_AFTER_TIME): selector.selector({"time": {}}),
vol.Required(CONF_BEFORE_TIME): selector.selector({"time": {}}),
}
)