Skip to content

Commit 171893d

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 a0f61c6 commit 171893d

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
@@ -719,7 +719,7 @@ async def _energy_log_record_update_state(
719719
self._mac_in_str,
720720
)
721721
self._set_cache(
722-
CACHE_ENERGY_COLLECTION, cached_logs + "|" + log_cache_record
722+
CACHE_ENERGY_COLLECTION, log_cache_record + "|" + cached_logs
723723
)
724724
return True
725725

0 commit comments

Comments
 (0)