ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
610 stars 140 forks source link

Incorrect use of `get` for a boolean field #46

Closed alexbarcelo closed 6 years ago

alexbarcelo commented 6 years ago

Current implementation was failing if the config.ini included an explicit false --it was read as a string and thus a 'false' as a string was getted and it was considered True.

The enabled flag of the daemon was correctly using getboolean already.

ThomDietrich commented 6 years ago

Nice catch. Thanks!