Use TEMP_CELSIUS constant (#33963)

This commit is contained in:
springstan authored and GitHub committed 2020-04-10 19:17:46 +02:00
1 parent ca0648afe8
commit 78d87dc40f
24 files changed
+129 -96

No files matched your search

+2 -1
View File
@@ -5,6 +5,7 @@ from unittest.mock import Mock, patch
import requests
from homeassistant.components.fritzbox.climate import FritzboxThermostat
from homeassistant.const import TEMP_CELSIUS
class TestFritzboxClimate(unittest.TestCase):
@@ -51,7 +52,7 @@ class TestFritzboxClimate(unittest.TestCase):
def test_temperature_unit(self):
"""Test temperature_unit property."""
assert "°C" == self.thermostat.temperature_unit
assert TEMP_CELSIUS == self.thermostat.temperature_unit
def test_precision(self):
"""Test precision property."""