Skip to content

Commit 1623b19

Browse files
committed
Remove obsolete else
1 parent dfa0246 commit 1623b19

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -551,12 +551,11 @@ async def _energy_log_record_update_state(
551551
)
552552
return True
553553
return False
554-
else:
555-
_LOGGER.debug(
556-
"No existing energy collection log cached for %s",
557-
self.mac
558-
)
559-
self._set_cache(CACHE_ENERGY_COLLECTION, log_cache_record)
554+
_LOGGER.debug(
555+
"No existing energy collection log cached for %s",
556+
self.mac
557+
)
558+
self._set_cache(CACHE_ENERGY_COLLECTION, log_cache_record)
560559
return True
561560

562561
async def switch_relay(self, state: bool) -> bool | None:

0 commit comments

Comments
 (0)