diff --git a/custom_components/nodered/switch.py b/custom_components/nodered/switch.py index 3bc9f95..36fe48e 100644 --- a/custom_components/nodered/switch.py +++ b/custom_components/nodered/switch.py @@ -31,13 +31,12 @@ _LOGGER = logging.getLogger(__name__) -SERVICE_TRIGGER_SCHEMA = vol.Schema( - { - vol.Required(CONF_ENTITY_ID): cv.entity_ids, - vol.Optional(CONF_OUTPUT_PATH, default="0"): cv.string, - vol.Optional(CONF_MESSAGE, default={}): dict, - } -) +SERVICE_TRIGGER_SCHEMA = { + vol.Required(CONF_ENTITY_ID): cv.entity_ids, + vol.Optional(CONF_OUTPUT_PATH, default="0"): cv.string, + vol.Optional(CONF_MESSAGE, default={}): dict, +} + EVENT_TRIGGER_NODE = "automation_triggered" EVENT_DEVICE_TRIGGER = "device_trigger"