diff --git a/homeassistant/components/rdw/binary_sensor.py b/homeassistant/components/rdw/binary_sensor.py index ce8e2908251..c971c3e68b9 100644 --- a/homeassistant/components/rdw/binary_sensor.py +++ b/homeassistant/components/rdw/binary_sensor.py @@ -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( diff --git a/homeassistant/components/rdw/icons.json b/homeassistant/components/rdw/icons.json new file mode 100644 index 00000000000..5e1dffcad9c --- /dev/null +++ b/homeassistant/components/rdw/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "binary_sensor": { + "liability_insured": { + "default": "mdi:shield-car" + } + } + } +} diff --git a/tests/components/rdw/test_binary_sensor.py b/tests/components/rdw/test_binary_sensor.py index aea188db773..a81c723a7d7 100644 --- a/tests/components/rdw/test_binary_sensor.py +++ b/tests/components/rdw/test_binary_sensor.py @@ -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")