We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeb6a6d commit 3228934Copy full SHA for 3228934
custom_components/pyscript/trigger.py
@@ -741,9 +741,7 @@ async def trigger_watch(self):
741
742
# check if any state_trig_ident_any starts with var_name
743
any_match = False
744
- if "var_name" not in func_args:
745
- pass
746
- else:
+ if "var_name" in func_args:
747
for check_var in self.state_trig_ident_any:
748
if check_var == func_args['var_name']:
749
any_match = True
0 commit comments