Tweak datetime service schema (#100380)

This commit is contained in:
Erik Montnemery 2023-09-15 08:07:27 +02:00 committed by GitHub
parent 9470c71d49
commit a70235046a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,6 @@ from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.config_validation import ( # noqa: F401
ENTITY_SERVICE_FIELDS,
PLATFORM_SCHEMA,
PLATFORM_SCHEMA_BASE,
)
@ -54,7 +53,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
SERVICE_SET_VALUE,
{
vol.Required(ATTR_DATETIME): cv.datetime,
**ENTITY_SERVICE_FIELDS,
},
_async_set_value,
)