Fix script / automation repeat with count 0 fails (#65448)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
parent
778cc6106a
commit
efb6fd1569
2 changed files with 39 additions and 1 deletions
|
@ -742,7 +742,7 @@ class _ScriptRun:
|
|||
if saved_repeat_vars:
|
||||
self._variables["repeat"] = saved_repeat_vars
|
||||
else:
|
||||
del self._variables["repeat"]
|
||||
self._variables.pop("repeat", None) # Not set if count = 0
|
||||
|
||||
async def _async_choose_step(self) -> None:
|
||||
"""Choose a sequence."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue