Use device class translation for Sensibo update entity (#101888)

Use device class translation for Sensibo update
pull/101896/head
Joost Lekkerkerker 2023-10-12 19:13:21 +02:00 committed by GitHub
parent edf510f9c0
commit 3843e91af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 10 deletions

View File

@ -340,11 +340,6 @@
"name": "Pure Boost"
}
},
"update": {
"fw_ver_available": {
"name": "Update available"
}
},
"climate": {
"climate_device": {
"state_attributes": {

View File

@ -41,7 +41,6 @@ class SensiboDeviceUpdateEntityDescription(
DEVICE_SENSOR_TYPES: tuple[SensiboDeviceUpdateEntityDescription, ...] = (
SensiboDeviceUpdateEntityDescription(
key="fw_ver_available",
translation_key="fw_ver_available",
device_class=UpdateDeviceClass.FIRMWARE,
entity_category=EntityCategory.DIAGNOSTIC,
icon="mdi:rocket-launch",

View File

@ -15,7 +15,7 @@ from homeassistant.util import dt as dt_util
from tests.common import async_fire_time_changed
async def test_select(
async def test_update(
hass: HomeAssistant,
load_int: ConfigEntry,
monkeypatch: pytest.MonkeyPatch,
@ -23,8 +23,8 @@ async def test_select(
) -> None:
"""Test the Sensibo update."""
state1 = hass.states.get("update.hallway_update_available")
state2 = hass.states.get("update.kitchen_update_available")
state1 = hass.states.get("update.hallway_firmware")
state2 = hass.states.get("update.kitchen_firmware")
assert state1.state == STATE_ON
assert state1.attributes["installed_version"] == "SKY30046"
assert state1.attributes["latest_version"] == "SKY30048"
@ -43,5 +43,5 @@ async def test_select(
)
await hass.async_block_till_done()
state1 = hass.states.get("update.hallway_update_available")
state1 = hass.states.get("update.hallway_firmware")
assert state1.state == STATE_OFF