Skip to content

Commit 3a2ed5c

Browse files
committed
Remove walrus, does not work correctly
1 parent eb48815 commit 3a2ed5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ async def _full_update_device(self) -> None:
528528
async def async_update(self) -> PlugwiseData:
529529
"""Perform an incremental update for updating the various device states."""
530530
# Perform a full update at day-change
531-
if (new := dt.datetime.now().strftime("%w")) != self._previous:
532-
LOGGER.debug("HOI new, previous: %s, %s", new, self._previous)
531+
new = dt.datetime.now().strftime("%w")
532+
if new != self._previous:
533533
LOGGER.debug(
534534
"Performing daily full-update, reload the Plugwise integration when a single entity becomes unavailable."
535535
)

0 commit comments

Comments
 (0)