mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-01 11:47:46 +02:00
constructor before the try/except, so the FileNotFoundError was unhandled and crashed the entire daemon via asyncio.gather(). Now when the scale hardware isn't available (no /dev/i2c-0), it logs "Scale init failed" and sets self._ok = False, so scale_poll_loop will skip polling with "Scale not available, skipping scale polling" — same graceful degradation the NFC reader already has.