Fix homekit temperaturesensor round (#27047)
* Fix homekit temperature sensor for round with one decimal * Removing unnecesary operations * Adapting tests for new temperature_to_homekit() result precision
This commit is contained in:
1 parent
85947591c5
commit
c6b08b28b2
4 files changed
+6
-6
No files matched your search
@@ -173,7 +173,7 @@ def test_convert_to_float():
|
||||
def test_temperature_to_homekit():
|
||||
"""Test temperature conversion from HA to HomeKit."""
|
||||
assert temperature_to_homekit(20.46, TEMP_CELSIUS) == 20.5
|
||||
assert temperature_to_homekit(92.1, TEMP_FAHRENHEIT) == 33.5
|
||||
assert temperature_to_homekit(92.1, TEMP_FAHRENHEIT) == 33.4
|
||||
|
||||
|
||||
def test_temperature_to_states():
|
||||
|
||||
Reference in new issue
Block a user