Skip to content

Commit e86d4fe

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 f6c4d36 commit e86d4fe

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
@@ -712,7 +712,7 @@ async def _energy_log_record_update_state(
712712
self._mac_in_str,
713713
)
714714
self._set_cache(
715-
CACHE_ENERGY_COLLECTION, cached_logs + "|" + log_cache_record
715+
CACHE_ENERGY_COLLECTION, log_cache_record + "|" + cached_logs
716716
)
717717
return True
718718

0 commit comments

Comments
 (0)