Skip to content

Commit 48683f4

Browse files
committed
Add new energy_log_record at the front of the cache
this fits better to the reverse sorting of the data in the cache
1 parent 908b9a0 commit 48683f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ async def _energy_log_record_update_state(
718718
self._mac_in_str,
719719
)
720720
self._set_cache(
721-
CACHE_ENERGY_COLLECTION, cached_logs + "|" + log_cache_record
721+
CACHE_ENERGY_COLLECTION, log_cache_record + "|" + cached_logs
722722
)
723723
return True
724724

0 commit comments

Comments
 (0)