mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
Race condition in _update_state: dev mode probe released GIL via MQTT publish between raw_data overwrite and vt_tray list restoration, letting the event loop iterate over raw dict keys (strings) instead of spool dicts. Affects A1, P1, and X1Plus firmware that don't send the fun field. Fix: normalize vt_tray dict→list before raw_data assignment, restore preserved fields before any GIL-releasing work, add defensive guard in printer_state_to_dict.