mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Use the correct Unicode degree symbol (#20058)
The previous symbol used for degrees was U+00BA, the "Masculine Ordinal Indicator". This patch changes the symbol to U+00B0, "Degree Sign", to match the rest of the Home Assistant system.
This commit is contained in:
parent
75fa9b2fba
commit
fe93ea9bdf
@ -32,19 +32,19 @@ UNIT_SYSTEM = {UNITS_US: 0, UNITS_SI: 1}
|
|||||||
SCAN_INTERVAL = timedelta(seconds=300)
|
SCAN_INTERVAL = timedelta(seconds=300)
|
||||||
|
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
'winddir': ['Wind Dir', 'º'],
|
'winddir': ['Wind Dir', '°'],
|
||||||
'windspeedmph': ['Wind Speed', 'mph'],
|
'windspeedmph': ['Wind Speed', 'mph'],
|
||||||
'windgustmph': ['Wind Gust', 'mph'],
|
'windgustmph': ['Wind Gust', 'mph'],
|
||||||
'maxdailygust': ['Max Gust', 'mph'],
|
'maxdailygust': ['Max Gust', 'mph'],
|
||||||
'windgustdir': ['Gust Dir', 'º'],
|
'windgustdir': ['Gust Dir', '°'],
|
||||||
'windspdmph_avg2m': ['Wind Avg 2m', 'mph'],
|
'windspdmph_avg2m': ['Wind Avg 2m', 'mph'],
|
||||||
'winddir_avg2m': ['Wind Dir Avg 2m', 'mph'],
|
'winddir_avg2m': ['Wind Dir Avg 2m', 'mph'],
|
||||||
'windspdmph_avg10m': ['Wind Avg 10m', 'mph'],
|
'windspdmph_avg10m': ['Wind Avg 10m', 'mph'],
|
||||||
'winddir_avg10m': ['Wind Dir Avg 10m', 'º'],
|
'winddir_avg10m': ['Wind Dir Avg 10m', '°'],
|
||||||
'humidity': ['Humidity', '%'],
|
'humidity': ['Humidity', '%'],
|
||||||
'humidityin': ['Humidity In', '%'],
|
'humidityin': ['Humidity In', '%'],
|
||||||
'tempf': ['Temp', ['ºF', 'ºC']],
|
'tempf': ['Temp', ['°F', '°C']],
|
||||||
'tempinf': ['Inside Temp', ['ºF', 'ºC']],
|
'tempinf': ['Inside Temp', ['°F', '°C']],
|
||||||
'battout': ['Battery', ''],
|
'battout': ['Battery', ''],
|
||||||
'hourlyrainin': ['Hourly Rain Rate', 'in/hr'],
|
'hourlyrainin': ['Hourly Rain Rate', 'in/hr'],
|
||||||
'dailyrainin': ['Daily Rain', 'in'],
|
'dailyrainin': ['Daily Rain', 'in'],
|
||||||
@ -60,8 +60,8 @@ SENSOR_TYPES = {
|
|||||||
'solarradiation': ['Solar Rad', 'W/m^2'],
|
'solarradiation': ['Solar Rad', 'W/m^2'],
|
||||||
'co2': ['co2', 'ppm'],
|
'co2': ['co2', 'ppm'],
|
||||||
'lastRain': ['Last Rain', ''],
|
'lastRain': ['Last Rain', ''],
|
||||||
'dewPoint': ['Dew Point', ['ºF', 'ºC']],
|
'dewPoint': ['Dew Point', ['°F', '°C']],
|
||||||
'feelsLike': ['Feels Like', ['ºF', 'ºC']],
|
'feelsLike': ['Feels Like', ['°F', '°C']],
|
||||||
}
|
}
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user