Skip to content

Commit

Permalink
fix(sentence): Fix default value for response_type
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Sep 11, 2024
1 parent 80e1afa commit 314ae11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/nodered/sentence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
Expand Down

0 comments on commit 314ae11

Please sign in to comment.