mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Normalize temperature statistics to °C (#52297)
* Normalize temperature statistics to °C * Fix tests * Support temperature conversion to and from K, improve tests * Fix test * Add tests, pylint
This commit is contained in:
@@ -106,7 +106,7 @@ def test_temperature_same_unit():
|
||||
def test_temperature_unknown_unit():
|
||||
"""Test no conversion happens if unknown unit."""
|
||||
with pytest.raises(ValueError):
|
||||
METRIC_SYSTEM.temperature(5, "K")
|
||||
METRIC_SYSTEM.temperature(5, "abc")
|
||||
|
||||
|
||||
def test_temperature_to_metric():
|
||||
|
||||
Reference in New Issue
Block a user