mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Tweak datetime service schema (#100380)
This commit is contained in:
parent
9470c71d49
commit
a70235046a
@ -13,7 +13,6 @@ from homeassistant.config_entries import ConfigEntry
|
|||||||
from homeassistant.core import HomeAssistant, ServiceCall
|
from homeassistant.core import HomeAssistant, ServiceCall
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.config_validation import ( # noqa: F401
|
from homeassistant.helpers.config_validation import ( # noqa: F401
|
||||||
ENTITY_SERVICE_FIELDS,
|
|
||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
PLATFORM_SCHEMA_BASE,
|
PLATFORM_SCHEMA_BASE,
|
||||||
)
|
)
|
||||||
@ -54,7 +53,6 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
SERVICE_SET_VALUE,
|
SERVICE_SET_VALUE,
|
||||||
{
|
{
|
||||||
vol.Required(ATTR_DATETIME): cv.datetime,
|
vol.Required(ATTR_DATETIME): cv.datetime,
|
||||||
**ENTITY_SERVICE_FIELDS,
|
|
||||||
},
|
},
|
||||||
_async_set_value,
|
_async_set_value,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user