mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Add/Modify tomorrow.io sensor entity icons (#98648)
This commit is contained in:
parent
41db088f5d
commit
78f0d8bc9c
@ -118,6 +118,7 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_DEW_POINT,
|
||||
name="Dew Point",
|
||||
icon="mdi:thermometer-water",
|
||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||
device_class=SensorDeviceClass.TEMPERATURE,
|
||||
),
|
||||
@ -142,6 +143,7 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_CLOUD_BASE,
|
||||
name="Cloud Base",
|
||||
icon="mdi:cloud-arrow-down",
|
||||
unit_imperial=UnitOfLength.MILES,
|
||||
unit_metric=UnitOfLength.KILOMETERS,
|
||||
imperial_conversion=lambda val: DistanceConverter.convert(
|
||||
@ -154,6 +156,7 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_CLOUD_CEILING,
|
||||
name="Cloud Ceiling",
|
||||
icon="mdi:cloud-arrow-up",
|
||||
unit_imperial=UnitOfLength.MILES,
|
||||
unit_metric=UnitOfLength.KILOMETERS,
|
||||
imperial_conversion=lambda val: DistanceConverter.convert(
|
||||
@ -165,12 +168,14 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_CLOUD_COVER,
|
||||
name="Cloud Cover",
|
||||
icon="mdi:cloud-percent",
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
),
|
||||
# Data comes in as m/s, convert to mi/h for imperial
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_WIND_GUST,
|
||||
name="Wind Gust",
|
||||
icon="mdi:weather-windy",
|
||||
unit_imperial=UnitOfSpeed.MILES_PER_HOUR,
|
||||
unit_metric=UnitOfSpeed.METERS_PER_SECOND,
|
||||
imperial_conversion=lambda val: SpeedConverter.convert(
|
||||
@ -270,9 +275,9 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_POLLEN_TREE,
|
||||
name="Tree Pollen Index",
|
||||
icon="mdi:tree",
|
||||
value_map=PollenIndex,
|
||||
translation_key="pollen_index",
|
||||
icon="mdi:flower-pollen",
|
||||
),
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_POLLEN_WEED,
|
||||
@ -284,9 +289,9 @@ SENSOR_TYPES = (
|
||||
TomorrowioSensorEntityDescription(
|
||||
key=TMRW_ATTR_POLLEN_GRASS,
|
||||
name="Grass Pollen Index",
|
||||
icon="mdi:grass",
|
||||
value_map=PollenIndex,
|
||||
translation_key="pollen_index",
|
||||
icon="mdi:flower-pollen",
|
||||
),
|
||||
TomorrowioSensorEntityDescription(
|
||||
TMRW_ATTR_FIRE_INDEX,
|
||||
@ -304,7 +309,7 @@ SENSOR_TYPES = (
|
||||
name="UV Radiation Health Concern",
|
||||
value_map=UVDescription,
|
||||
translation_key="uv_index",
|
||||
icon="mdi:sun-wireless",
|
||||
icon="mdi:weather-sunny-alert",
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user