diff --git a/custom_components/nodered/sentence.py b/custom_components/nodered/sentence.py index bdc6744..979f00e 100644 --- a/custom_components/nodered/sentence.py +++ b/custom_components/nodered/sentence.py @@ -42,7 +42,9 @@ class ResponseType(Enum): vol.Required(CONF_SERVER_ID): cv.string, vol.Required("sentences", default=[]): [cv.string], vol.Optional("response", default="Done"): cv.string, - vol.Optional("response_type", default=False): vol.Coerce(ResponseType), + vol.Optional("response_type", default=ResponseType.FIXED): vol.Coerce( + ResponseType + ), vol.Optional("response_timeout", default=1): cv.positive_float, } )