mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-07 23:01:06 +02:00
Some A1/A1 Mini firmware versions incorrectly report stg_cur=0 (which maps to "Printing") even when the printer is idle. This is a known firmware bug also observed in the Home Assistant Bambu Lab integration. - Add A1_MODELS constant listing affected model variants - Add has_stg_cur_idle_bug() helper to identify affected models - Update get_derived_status_name() to check gcode_state before stg_cur for A1 models: if IDLE + stg_cur=0, return None to show "Idle" - Fix only applies when all conditions match (A1 model + IDLE + stg_cur=0) - Non-A1 printers and A1 printers without the bug are unaffected Closes #168