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 93ad4fe commit 8a64fd4Copy full SHA for 8a64fd4
custom_components/pyscript/__init__.py
@@ -211,7 +211,7 @@ async def state_changed(event):
211
new_val = event.data["new_state"].state
212
old_val = event.data["old_state"].state if event.data["old_state"] else None
213
214
- if old_val != new_val:
+ if old_val == new_val:
215
val_change = False
216
else:
217
val_change = True
@@ -237,7 +237,7 @@ async def state_changed(event):
237
238
old_val = None
239
240
241
242
243
0 commit comments