Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions homeassistant/components/climacell/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ def __post_init__(self) -> None:
key=CC_ATTR_PRECIPITATION_TYPE,
name="Precipitation Type",
value_map=PrecipitationType,
device_class="climacell__precipitation_type",
icon="mdi:weather-snowy-rainy",
),
ClimaCellSensorEntityDescription(
key=CC_ATTR_OZONE,
Expand Down Expand Up @@ -301,6 +303,8 @@ def __post_init__(self) -> None:
key=CC_ATTR_EPA_HEALTH_CONCERN,
name="US EPA Health Concern",
value_map=HealthConcernType,
device_class="climacell__health_concern",
icon="mdi:hospital",
),
ClimaCellSensorEntityDescription(
key=CC_ATTR_CHINA_AQI,
Expand All @@ -315,25 +319,34 @@ def __post_init__(self) -> None:
key=CC_ATTR_CHINA_HEALTH_CONCERN,
name="China MEP Health Concern",
value_map=HealthConcernType,
device_class="climacell__health_concern",
icon="mdi:hospital",
),
ClimaCellSensorEntityDescription(
key=CC_ATTR_POLLEN_TREE,
name="Tree Pollen Index",
value_map=PollenIndex,
device_class="climacell__pollen_index",
icon="mdi:flower-pollen",
),
ClimaCellSensorEntityDescription(
key=CC_ATTR_POLLEN_WEED,
name="Weed Pollen Index",
value_map=PollenIndex,
device_class="climacell__pollen_index",
icon="mdi:flower-pollen",
),
ClimaCellSensorEntityDescription(
key=CC_ATTR_POLLEN_GRASS,
name="Grass Pollen Index",
value_map=PollenIndex,
device_class="climacell__pollen_index",
icon="mdi:flower-pollen",
),
ClimaCellSensorEntityDescription(
CC_ATTR_FIRE_INDEX,
name="Fire Index",
icon="mdi:fire",
),
)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climacell/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"options": {
"step": {
"init": {
"title": "Update [%key:component::climacell::title%] Options",
"title": "Update ClimaCell Options",
"description": "If you choose to enable the `nowcast` forecast entity, you can configure the number of minutes between each forecast. The number of forecasts provided depends on the number of minutes chosen between forecasts.",
"data": {
"timestep": "Min. Between NowCast Forecasts"
Expand Down
27 changes: 27 additions & 0 deletions homeassistant/components/climacell/strings.sensor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"state": {
"climacell__pollen_index": {
"none": "None",
"very_low": "Very Low",
"low": "Low",
"medium": "Medium",
"high": "High",
"very_high": "Very High"
},
"climacell__health_concern": {
"good": "Good",
"moderate": "Moderate",
"unhealthy_for_sensitive_groups": "Unhealthy for Sensitive Groups",
"unhealthy": "Unhealthy",
"very_unhealthy": "Very Unhealthy",
"hazardous": "Hazardous"
},
"climacell__precipitation_type": {
"none": "None",
"rain": "Rain",
"snow": "Snow",
"freezing_rain": "Freezing Rain",
"ice_pellets": "Ice Pellets"
}
}
}
3 changes: 1 addition & 2 deletions homeassistant/components/climacell/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
"title": "Update ClimaCell Options"
}
}
},
"title": "ClimaCell"
}
}
27 changes: 27 additions & 0 deletions homeassistant/components/climacell/translations/sensor.en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"state": {
"climacell__health_concern": {
"good": "Good",
"hazardous": "Hazardous",
"moderate": "Moderate",
"unhealthy": "Unhealthy",
"unhealthy_for_sensitive_groups": "Unhealthy for Sensitive Groups",
"very_unhealthy": "Very Unhealthy"
},
"climacell__pollen_index": {
"high": "High",
"low": "Low",
"medium": "Medium",
"none": "None",
"very_high": "Very High",
"very_low": "Very Low"
},
"climacell__precipitation_type": {
"freezing_rain": "Freezing Rain",
"ice_pellets": "Ice Pellets",
"none": "None",
"rain": "Rain",
"snow": "Snow"
}
}
}