File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
plugwise_usb/nodes/helpers Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -841,12 +841,11 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
841841 if self ._logs [address ][slot ].timestamp <= from_timestamp :
842842 break
843843
844- _LOGGER .debug (
845- "_logs_missing | %s | missing in range=%s" , self ._mac , missing
846- )
847-
848844 # return missing logs in range first
849845 if len (missing ) > 0 :
846+ _LOGGER .debug (
847+ "_logs_missing | %s | missing in range=%s" , self ._mac , missing
848+ )
850849 return missing
851850
852851 if first_address not in self ._logs :
@@ -880,11 +879,6 @@ def _logs_missing(self, from_timestamp: datetime) -> list[int] | None:
880879 calculated_timestamp = self ._logs [first_address ][
881880 first_slot
882881 ].timestamp - timedelta (minutes = log_interval )
883- _LOGGER .debug (
884- "_logs_missing | %s | calculated timestamp=%s" ,
885- self ._mac ,
886- calculated_timestamp ,
887- )
888882 while from_timestamp < calculated_timestamp :
889883 if (
890884 address == self ._first_empty_log_address
You can’t perform that action at this time.
0 commit comments