Use TEMP_CELSIUS constant (#33963)
This commit is contained in:
1 parent
ca0648afe8
commit
78d87dc40f
24 files changed
+129
-96
No files matched your search
@@ -1,5 +1,7 @@
|
||||
"""The sensor tests for the nexia platform."""
|
||||
|
||||
from homeassistant.const import TEMP_CELSIUS
|
||||
|
||||
from .util import async_init_integration
|
||||
|
||||
|
||||
@@ -15,7 +17,7 @@ async def test_create_sensors(hass):
|
||||
"attribution": "Data provided by mynexia.com",
|
||||
"device_class": "temperature",
|
||||
"friendly_name": "Nick Office Temperature",
|
||||
"unit_of_measurement": "°C",
|
||||
"unit_of_measurement": TEMP_CELSIUS,
|
||||
}
|
||||
# Only test for a subset of attributes in case
|
||||
# HA changes the implementation and a new one appears
|
||||
@@ -82,7 +84,7 @@ async def test_create_sensors(hass):
|
||||
"attribution": "Data provided by mynexia.com",
|
||||
"device_class": "temperature",
|
||||
"friendly_name": "Master Suite Outdoor Temperature",
|
||||
"unit_of_measurement": "°C",
|
||||
"unit_of_measurement": TEMP_CELSIUS,
|
||||
}
|
||||
# Only test for a subset of attributes in case
|
||||
# HA changes the implementation and a new one appears
|
||||
|
||||
Reference in new issue
Block a user