Skip to content

Commit a4754a3

Browse files
committed
For legacy lock is always present
1 parent 60d6851 commit a4754a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/legacy/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ async def set_switch_state(
283283

284284
# Handle individual relay switches
285285
uri = f"{APPLIANCES};id={appl_id}/relay"
286-
if model == "relay" and self.gw_entities[appl_id]["switches"].get("lock"):
286+
if model == "relay" and self.gw_entities[appl_id]["switches"]["lock"]:
287287
# Don't bother switching a relay when the corresponding lock-state is true
288288
return current_state
289289

0 commit comments

Comments
 (0)