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 65428b9 commit 8e5399aCopy full SHA for 8e5399a
plugwise/legacy/smile.py
@@ -283,7 +283,7 @@ async def set_switch_state(
283
284
# Handle individual relay switches
285
uri = f"{APPLIANCES};id={appl_id}/relay"
286
- if model == "relay" and self.gw_entities[appl_id]["switches"].get("lock"):
+ if model == "relay" and self.gw_entities[appl_id]["switches"]["lock"]:
287
# Don't bother switching a relay when the corresponding lock-state is true
288
return current_state
289
0 commit comments