Skip to content

Commit a0a5047

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 b10698c commit a0a5047

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
@@ -703,7 +703,7 @@ async def _energy_log_record_update_state(
703703
self._mac_in_str,
704704
)
705705
self._set_cache(
706-
CACHE_ENERGY_COLLECTION, cached_logs + "|" + log_cache_record
706+
CACHE_ENERGY_COLLECTION, log_cache_record + "|" + cached_logs
707707
)
708708
return True
709709

0 commit comments

Comments
 (0)