Application¶
App factory, @app.state provider, and top-level wiring. This is the composition
root where devices, adapters, and settings come together.
gas2mqtt.main
¶
gas2mqtt application entry point.
EXIT_AFTER_STALE
module-attribute
¶
Seconds a stale entity may stay stale before the app exits with code 5.
The restart re-opens the I2C bus and re-writes the control registers. With the derived 186 s bound, a dead sensor exits 8 to 10 minutes after its last read.