Skip to content

Commit

Permalink
airzone_cloud: binary_sensor: rename Air Quality
Browse files Browse the repository at this point in the history
Add "active" to indicate status.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed Feb 21, 2024
1 parent 67a0102 commit bd7aa97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/airzone_cloud/binary_sensor.py
Expand Up @@ -79,7 +79,7 @@ class AirzoneBinarySensorEntityDescription(BinarySensorEntityDescription):
),
AirzoneBinarySensorEntityDescription(
key=AZD_AQ_ACTIVE,
translation_key="air_quality",
translation_key="air_quality_active",
),
AirzoneBinarySensorEntityDescription(
attributes={
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/airzone_cloud/strings.json
Expand Up @@ -18,8 +18,8 @@
},
"entity": {
"binary_sensor": {
"air_quality": {
"name": "Air Quality"
"air_quality_active": {
"name": "Air Quality active"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/components/airzone_cloud/test_binary_sensor.py
Expand Up @@ -41,7 +41,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
assert state.attributes.get("warnings") is None

# Zones
state = hass.states.get("binary_sensor.dormitorio_air_quality")
state = hass.states.get("binary_sensor.dormitorio_air_quality_active")
assert state.state == STATE_OFF

state = hass.states.get("binary_sensor.dormitorio_problem")
Expand All @@ -51,7 +51,7 @@ async def test_airzone_create_binary_sensors(hass: HomeAssistant) -> None:
state = hass.states.get("binary_sensor.dormitorio_running")
assert state.state == STATE_OFF

state = hass.states.get("binary_sensor.salon_air_quality")
state = hass.states.get("binary_sensor.salon_air_quality_active")
assert state.state == STATE_OFF

state = hass.states.get("binary_sensor.salon_problem")
Expand Down

0 comments on commit bd7aa97

Please sign in to comment.