Skip to content

Commit 6a3537f

Browse files
committed
Sed format fixes
1 parent 128a0cf commit 6a3537f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/sed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,14 @@ async def _awake_response(self, response: PlugwiseResponse) -> bool:
500500
raise MessageError(
501501
f"Invalid response message type ({response.__class__.__name__}) received, expected NodeAwakeResponse"
502502
)
503+
503504
_LOGGER.debug("Device %s is awake for %s", self.name, response.awake_type)
504505
self._set_cache(CACHE_AWAKE_TIMESTAMP, response.timestamp)
505506
await self._available_update_state(True, response.timestamp)
506507

507508
# Pre populate the last awake timestamp
508509
if self._last_awake.get(response.awake_type) is None:
509510
self._last_awake[response.awake_type] = response.timestamp
510-
511511
# Skip awake messages when they are shortly after each other
512512
elif (
513513
self._last_awake[response.awake_type] + timedelta(seconds=AWAKE_RETRY)

0 commit comments

Comments
 (0)