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 ca01f28 commit 86a7c41Copy full SHA for 86a7c41
plugwise_usb/nodes/circle.py
@@ -674,8 +674,7 @@ async def _relay_load_from_cache(self) -> bool:
674
self._mac_in_str,
675
cached_relay_data,
676
)
677
-
678
- relay_state = cached_relay_data != "True"
+ relay_state = cached_relay_data == "True"
679
await self._relay_update_state(relay_state)
680
else:
681
_LOGGER.debug(
@@ -691,7 +690,7 @@ async def _relay_load_from_cache(self) -> bool:
691
690
692
cached_relay_lock,
693
694
- relay_lock = cached_relay_lock != "True"
+ relay_lock = cached_relay_lock == "True"
695
await self._relay_update_lock(relay_lock)
696
697
# Set to initial state False when not present in cache
0 commit comments