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 444ed47 commit ac30e3fCopy full SHA for ac30e3f
plugwise_usb/nodes/circle.py
@@ -910,14 +910,12 @@ async def clock_synchronize(self) -> bool:
910
datetime.now(tz=UTC),
911
self._node_protocols.max,
912
)
913
- if (node_response := await set_request.send()) is None:
914
- _LOGGER.warning(
915
- "Failed to (re)set the internal clock of %s",
916
- self.name,
917
- )
918
- return False
919
- if node_response.ack_id == NodeResponseType.CLOCK_ACCEPTED:
920
- return True
+ if (node_response := await set_request.send()) is not None:
+ return node_response.ack_id == NodeResponseType.CLOCK_ACCEPTED
+ _LOGGER.warning(
+ "Failed to (re)set the internal realtime clock of %s",
+ self.name,
+ )
921
return False
922
923
async def load(self) -> None:
0 commit comments