You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix MQTT status parsing: handle integer CurrentStatus
MQTT printers send CurrentStatus as an integer (e.g., 1) while WebSocket
printers send it as a list (e.g., [1]).
Changes:
- Updated ElegooMachineStatus.from_int() to wrap integer in list and call from_list()
- Updated PrinterStatus.__init__() to detect format and call appropriate method
- Cleaner separation: from_int wraps and delegates to from_list
This fixes the TypeError: object of type 'int' has no len() error that was
preventing status updates from MQTT printers.
0 commit comments