From 7297fbcaa7ed724eb431605f3a5f28879f010b38 Mon Sep 17 00:00:00 2001 From: Patrick Schmidt Date: Tue, 2 Jan 2024 17:33:58 +0100 Subject: [PATCH] Ensure eval is also triggered in case timelapse pause -> error --- mobileraker/mobileraker_companion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobileraker/mobileraker_companion.py b/mobileraker/mobileraker_companion.py index e13fd1f..14554dd 100644 --- a/mobileraker/mobileraker_companion.py +++ b/mobileraker/mobileraker_companion.py @@ -181,7 +181,7 @@ def _fulfills_evaluation_threshold(self, snapshot: PrinterSnapshot) -> bool: self._logger.info('No last snapshot available. Evaluating!') return True - if self._last_snapshot.print_state != snapshot.print_state and not snapshot.is_timelapse_pause and not self._last_snapshot.is_timelapse_pause: + if self._last_snapshot.print_state != snapshot.print_state and not snapshot.is_timelapse_pause: self._logger.info('State changed. Evaluating!') return True