mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add icon translations to Ambient station (#108400)
This commit is contained in:
parent
94b39941e2
commit
4f998acb78
27
homeassistant/components/ambient_station/icons.json
Normal file
27
homeassistant/components/ambient_station/icons.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"last_rain": {
|
||||||
|
"default": "mdi:water"
|
||||||
|
},
|
||||||
|
"lightning_strikes_per_day": {
|
||||||
|
"default": "mdi:lightning-bolt"
|
||||||
|
},
|
||||||
|
"lightning_strikes_per_hour": {
|
||||||
|
"default": "mdi:lightning-bolt"
|
||||||
|
},
|
||||||
|
"wind_direction": {
|
||||||
|
"default": "mdi:weather-windy"
|
||||||
|
},
|
||||||
|
"wind_direction_average_10m": {
|
||||||
|
"default": "mdi:weather-windy"
|
||||||
|
},
|
||||||
|
"wind_direction_average_2m": {
|
||||||
|
"default": "mdi:weather-windy"
|
||||||
|
},
|
||||||
|
"wind_gust_direction": {
|
||||||
|
"default": "mdi:weather-windy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -281,20 +281,17 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_LASTRAIN,
|
key=TYPE_LASTRAIN,
|
||||||
translation_key="last_rain",
|
translation_key="last_rain",
|
||||||
icon="mdi:water",
|
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_LIGHTNING_PER_DAY,
|
key=TYPE_LIGHTNING_PER_DAY,
|
||||||
translation_key="lightning_strikes_per_day",
|
translation_key="lightning_strikes_per_day",
|
||||||
icon="mdi:lightning-bolt",
|
|
||||||
native_unit_of_measurement="strikes",
|
native_unit_of_measurement="strikes",
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_LIGHTNING_PER_HOUR,
|
key=TYPE_LIGHTNING_PER_HOUR,
|
||||||
translation_key="lightning_strikes_per_hour",
|
translation_key="lightning_strikes_per_hour",
|
||||||
icon="mdi:lightning-bolt",
|
|
||||||
native_unit_of_measurement="strikes",
|
native_unit_of_measurement="strikes",
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
@ -595,25 +592,21 @@ SENSOR_DESCRIPTIONS = (
|
|||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_WINDDIR,
|
key=TYPE_WINDDIR,
|
||||||
translation_key="wind_direction",
|
translation_key="wind_direction",
|
||||||
icon="mdi:weather-windy",
|
|
||||||
native_unit_of_measurement=DEGREE,
|
native_unit_of_measurement=DEGREE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_WINDDIR_AVG10M,
|
key=TYPE_WINDDIR_AVG10M,
|
||||||
translation_key="wind_direction_average_10m",
|
translation_key="wind_direction_average_10m",
|
||||||
icon="mdi:weather-windy",
|
|
||||||
native_unit_of_measurement=DEGREE,
|
native_unit_of_measurement=DEGREE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_WINDDIR_AVG2M,
|
key=TYPE_WINDDIR_AVG2M,
|
||||||
translation_key="wind_direction_average_2m",
|
translation_key="wind_direction_average_2m",
|
||||||
icon="mdi:weather-windy",
|
|
||||||
native_unit_of_measurement=DEGREE,
|
native_unit_of_measurement=DEGREE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key=TYPE_WINDGUSTDIR,
|
key=TYPE_WINDGUSTDIR,
|
||||||
translation_key="wind_gust_direction",
|
translation_key="wind_gust_direction",
|
||||||
icon="mdi:weather-windy",
|
|
||||||
native_unit_of_measurement=DEGREE,
|
native_unit_of_measurement=DEGREE,
|
||||||
),
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user