Fix homekit: temperature calculation (#12720)
This commit is contained in:
1 parent
10570f5ad6
commit
6a665ffb84
2 files changed
+7
-8
No files matched your search
@@ -12,6 +12,7 @@ from tests.common import get_test_home_assistant
|
||||
def test_calc_temperature():
|
||||
"""Test if temperature in Celsius is calculated correctly."""
|
||||
assert calc_temperature(STATE_UNKNOWN) is None
|
||||
assert calc_temperature('test') is None
|
||||
|
||||
assert calc_temperature('20') == 20
|
||||
assert calc_temperature('20.12', TEMP_CELSIUS) == 20.12
|
||||
|
||||
Reference in new issue
Block a user