Add icon translations to RDW (#112203)

* Add icon translations to RDW

* Add icon translations to RDW
This commit is contained in:
Joost Lekkerkerker 2024-03-05 08:45:10 +01:00 committed by GitHub
parent 161d31d789
commit 926159ab9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View File

@ -34,7 +34,6 @@ BINARY_SENSORS: tuple[RDWBinarySensorEntityDescription, ...] = (
RDWBinarySensorEntityDescription(
key="liability_insured",
translation_key="liability_insured",
icon="mdi:shield-car",
is_on_fn=lambda vehicle: vehicle.liability_insured,
),
RDWBinarySensorEntityDescription(

View File

@ -0,0 +1,9 @@
{
"entity": {
"binary_sensor": {
"liability_insured": {
"default": "mdi:shield-car"
}
}
}
}

View File

@ -23,7 +23,6 @@ async def test_vehicle_binary_sensors(
assert entry.unique_id == "11ZKZ3_liability_insured"
assert state.state == "off"
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "Skoda 11ZKZ3 Liability insured"
assert state.attributes.get(ATTR_ICON) == "mdi:shield-car"
assert ATTR_DEVICE_CLASS not in state.attributes
state = hass.states.get("binary_sensor.skoda_11zkz3_pending_recall")