zewelor / bt-mqtt-gateway

A simple Python script which provides a Bluetooth to MQTT gateway, easily extensible via custom workers. See https://github.com/zewelor/bt-mqtt-gateway/wiki for more information.
MIT License
548 stars 116 forks source link

Fix calculations in miscale.py for scales set to lbs unit #163

Closed PowerScrypt closed 4 years ago

PowerScrypt commented 4 years ago

Description

This update fixes incorrect body metric calculations if the scale is set to lbs by checking the unit and converting to kg if necessary.

Type of change

zewelor commented 4 years ago

Thanks !