Browse Source

Fixed bug in mock_state

maziggy 5 months ago
parent
commit
a66500b605
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/tests/unit/services/test_printer_manager.py

+ 1 - 0
backend/tests/unit/services/test_printer_manager.py

@@ -576,6 +576,7 @@ class TestPrinterStateToDict:
         state.tray_now = "1"
         state.wifi_signal = -50
         state.raw_data = {}
+        state.stg_cur = -1  # No calibration stage active
         return state
 
     def test_basic_conversion(self, mock_state):