We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 093874e commit d67d231Copy full SHA for d67d231
1 file changed
plugwise_usb/nodes/circle.py
@@ -532,10 +532,10 @@ async def _energy_log_records_load_from_cache(self) -> bool:
532
)
533
return False
534
restored_logs: dict[int, list[int]] = {}
535
- log_data = cache_data.split("|")
536
- if len(log_data) == 0:
+ if cache_data == "":
537
538
+ log_data = cache_data.split("|")
539
for log_record in log_data:
540
log_fields = log_record.split(":")
541
if len(log_fields) == 4:
0 commit comments