mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-17 19:36:28 +02:00
MQTT raw data returns AMS unit and tray IDs as strings (e.g. "0"), but _build_loaded_filaments() compared them to integers without casting. After the scheduler assigned an idle printer to an "Any Model" job, it crashed computing AMS mapping with: '>=' not supported between instances of 'str' and 'int' The exception prevented the assignment from committing, so the scheduler retried every 30 seconds in an infinite loop. The job stayed in "Waiting" and the "Clear Plate" button kept reappearing. Cast ams_id and tray_id to int(), matching the pattern already used for external spool IDs on line 550.