jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
327 stars 34 forks source link

[Draft] Use user's preferred temperature unit instead of hardcoding celsius #460

Closed mbbush closed 6 months ago

mbbush commented 6 months ago

With this change, I'm no longer affected by #240.

I tried to write a unit test for this behavior, which would fail on main and pass on my branch, but I'm unfamiliar with python testing libraries, or how home assistant uses them, and wasn't able to figure it out.