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
@@ -18,6 +18,7 @@ from homeassistant.const import (
|
||||
SPEED_KILOMETERS_PER_HOUR,
|
||||
SPEED_METERS_PER_SECOND,
|
||||
SPEED_MILES_PER_HOUR,
|
||||
TEMP_CELSIUS,
|
||||
TIME_HOURS,
|
||||
UNIT_PERCENTAGE,
|
||||
UNIT_UV_INDEX,
|
||||
@@ -134,31 +135,31 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"temperature": [
|
||||
"Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["currently", "hourly"],
|
||||
],
|
||||
"apparent_temperature": [
|
||||
"Apparent Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["currently", "hourly"],
|
||||
],
|
||||
"dew_point": [
|
||||
"Dew Point",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["currently", "hourly", "daily"],
|
||||
],
|
||||
@@ -244,81 +245,81 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"apparent_temperature_max": [
|
||||
"Daily High Apparent Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"apparent_temperature_high": [
|
||||
"Daytime High Apparent Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"apparent_temperature_min": [
|
||||
"Daily Low Apparent Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"apparent_temperature_low": [
|
||||
"Overnight Low Apparent Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"temperature_max": [
|
||||
"Daily High Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"temperature_high": [
|
||||
"Daytime High Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"temperature_min": [
|
||||
"Daily Low Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
"temperature_low": [
|
||||
"Overnight Low Temperature",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
"°F",
|
||||
"°C",
|
||||
"°C",
|
||||
"°C",
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_CELSIUS,
|
||||
"mdi:thermometer",
|
||||
["daily"],
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user