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 1e06b38 commit 6fd372cCopy full SHA for 6fd372c
plugwise/smile.py
@@ -16,6 +16,7 @@
16
DOMAIN_OBJECTS,
17
GATEWAY_REBOOT,
18
LOCATIONS,
19
+ LOGGER,
20
MAX_SETPOINT,
21
MIN_SETPOINT,
22
NONE,
@@ -424,7 +425,9 @@ async def set_switch_state(
424
425
switch_id = item.attrib["id"]
426
427
uri = f"{APPLIANCES};id={appl_id}/{switch.device};id={switch_id}"
- if model == "relay" and self.gw_entities[appl_id]["switches"].get("lock"):
428
+ lock_blocked = self.gw_entities[appl_id]["switches"].get("lock")
429
+ LOGGER.debug("HOI lock_blocked=%s", lock_blocked)
430
+ if model == "relay" and lock_blocked:
431
# Don't switch a relay when its corresponding lock-state is true or no
432
# lock is present. That means the relay can't be controlled by the user.
433
return current_state
0 commit comments