From a69b83aaf0ca11b95492f0d39696579774081989 Mon Sep 17 00:00:00 2001 From: jodur Date: Mon, 25 Jan 2021 12:40:49 +0100 Subject: [PATCH] Correct release error Merging the from different place for the first release introduced as stupid error --- custom_components/imagedirectory/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_components/imagedirectory/__init__.py b/custom_components/imagedirectory/__init__.py index 4f0649b..c302622 100644 --- a/custom_components/imagedirectory/__init__.py +++ b/custom_components/imagedirectory/__init__.py @@ -17,7 +17,7 @@ _LOGGER = logging.getLogger(__name__) -from homeassistant.const import CONF_NAME +from homeassistant.const import CONF_EXCLUDE SERVICE_CREATE = 'create_gif_mp4' SERVICE_DEL= 'delete_files' @@ -27,13 +27,13 @@ SERVICE_PARAM_DESTINATION='destinationpath' SERVICE_PARAM_FILENAME='filename' SERVICE_PARAM_FORMAT='format' -SERVICE_PARAM_EXCLUDE=CONF_NAME +SERVICE_PARAM_EXCLUDE=CONF_EXCLUDE SERVICE_PARAM_BEGINTIME='begintimestamp' SERVCE_PARAM_ENDTIME='endtimestamp' EPOCH_START='01/01/1970 00:00:00' EPOCH_END='31/12/9999 23:59:59' -SNAPTOGIF_START_SCHEMA = vol.Schema( +SNAPTOGIF_CREATE_SCHEMA = vol.Schema( { vol.Required(SERVICE_PARAM_SOURCE): cv.isdir, vol.Required(SERVICE_PARAM_DESTINATION): cv.isdir, @@ -198,7 +198,7 @@ def Imagedirectory_Services(call): #register services to homeassistant hass.services.register( DOMAIN, SERVICE_CREATE, Imagedirectory_Services, - schema=SNAPTOGIF_START_SCHEMA) + schema=SNAPTOGIF_CREATE_SCHEMA) hass.services.register( DOMAIN, SERVICE_DEL, Imagedirectory_Services, schema=SNAPTOGIF_DEL_SCHEMA)