diff --git a/homeassistant/components/tailwind/binary_sensor.py b/homeassistant/components/tailwind/binary_sensor.py index eaa0cbd1a08..75262427d9f 100644 --- a/homeassistant/components/tailwind/binary_sensor.py +++ b/homeassistant/components/tailwind/binary_sensor.py @@ -34,7 +34,6 @@ DESCRIPTIONS: tuple[TailwindDoorBinarySensorEntityDescription, ...] = ( translation_key="operational_problem", entity_category=EntityCategory.DIAGNOSTIC, device_class=BinarySensorDeviceClass.PROBLEM, - icon="mdi:garage-alert", is_on_fn=lambda door: door.locked_out, ), ) diff --git a/homeassistant/components/tailwind/icons.json b/homeassistant/components/tailwind/icons.json new file mode 100644 index 00000000000..ed2c6af16b3 --- /dev/null +++ b/homeassistant/components/tailwind/icons.json @@ -0,0 +1,14 @@ +{ + "entity": { + "binary_sensor": { + "operational_problem": { + "default": "mdi:garage-alert" + } + }, + "number": { + "brightness": { + "default": "mdi:led-on" + } + } + } +} diff --git a/homeassistant/components/tailwind/number.py b/homeassistant/components/tailwind/number.py index 5853e5c2d30..b44e98b27f5 100644 --- a/homeassistant/components/tailwind/number.py +++ b/homeassistant/components/tailwind/number.py @@ -30,7 +30,6 @@ class TailwindNumberEntityDescription(NumberEntityDescription): DESCRIPTIONS = [ TailwindNumberEntityDescription( key="brightness", - icon="mdi:led-on", translation_key="brightness", entity_category=EntityCategory.CONFIG, native_step=1, diff --git a/tests/components/tailwind/snapshots/test_binary_sensor.ambr b/tests/components/tailwind/snapshots/test_binary_sensor.ambr index 3f6f2baf26b..6b09714a27e 100644 --- a/tests/components/tailwind/snapshots/test_binary_sensor.ambr +++ b/tests/components/tailwind/snapshots/test_binary_sensor.ambr @@ -4,7 +4,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'problem', 'friendly_name': 'Door 1 Operational problem', - 'icon': 'mdi:garage-alert', }), 'context': , 'entity_id': 'binary_sensor.door_1_operational_problem', @@ -36,7 +35,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:garage-alert', + 'original_icon': None, 'original_name': 'Operational problem', 'platform': 'tailwind', 'previous_unique_id': None, @@ -81,7 +80,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'problem', 'friendly_name': 'Door 2 Operational problem', - 'icon': 'mdi:garage-alert', }), 'context': , 'entity_id': 'binary_sensor.door_2_operational_problem', @@ -113,7 +111,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:garage-alert', + 'original_icon': None, 'original_name': 'Operational problem', 'platform': 'tailwind', 'previous_unique_id': None, diff --git a/tests/components/tailwind/snapshots/test_number.ambr b/tests/components/tailwind/snapshots/test_number.ambr index 95237f82522..e00827ed761 100644 --- a/tests/components/tailwind/snapshots/test_number.ambr +++ b/tests/components/tailwind/snapshots/test_number.ambr @@ -3,7 +3,6 @@ StateSnapshot({ 'attributes': ReadOnlyDict({ 'friendly_name': 'Tailwind iQ3 Status LED brightness', - 'icon': 'mdi:led-on', 'max': 100, 'min': 0, 'mode': , @@ -45,7 +44,7 @@ 'options': dict({ }), 'original_device_class': None, - 'original_icon': 'mdi:led-on', + 'original_icon': None, 'original_name': 'Status LED brightness', 'platform': 'tailwind', 'previous_unique_id': None,