Skip to content

Commit 9bdcbe6

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 8d04842 commit 9bdcbe6

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
@@ -711,7 +711,7 @@ async def _energy_log_record_update_state(
711711
self._mac_in_str,
712712
)
713713
self._set_cache(
714-
CACHE_ENERGY_COLLECTION, cached_logs + "|" + log_cache_record
714+
CACHE_ENERGY_COLLECTION, log_cache_record + "|" + cached_logs
715715
)
716716
return True
717717

0 commit comments

Comments
 (0)