Precision in fglair to 0.1
Hello, I'd like to know how to adjust precision to 0.1. Im using fglair aircon. Looking at the code, at main.py, precision looks to be hardcoded: config = { 'name': device.name, 'unique_id': device.mac_address, 'device': { 'identifiers': [f'hisense_ac_{device.mac_address}'], 'manufacturer': f'Hisense ({device.app})', 'model': device.model, 'name': device.name, 'sw_version': device.sw_version }, 'availability': [ { 'topic': mqtt_topics['lwt'] }, { 'topic': mqtt_topics['pub'].format(device.mac_address, 'available') }, ], 'precision': 1.0, 'temperature_unit': 'F' if device.is_fahrenheit else 'C' }
#222 addresses this to a certain extent, with that it takes a per-device precision value (which I set to 0.5 for my device, as that seems to be what works). It's not settable from the config but it could be made to be.