* Bugfix: if some setpoints have different units, we should fetch the one that are active.
* Move order of population for first time detection
* Default to config if None unit_of_measurement
* Map Modes to setpoint indexes
* Fixes devices with no thermostat mode
* another try to fix devices without mode
* another try to fix devices without mode 2
* another try to fix devices without mode 3
* fix setting setpoint for devices with no mode
* fix setting setpoint for devices with no mode