diff --git a/homeassistant/components/tedee/icons.json b/homeassistant/components/tedee/icons.json new file mode 100644 index 00000000000..3f98462b22f --- /dev/null +++ b/homeassistant/components/tedee/icons.json @@ -0,0 +1,9 @@ +{ + "entity": { + "sensor": { + "pullspring_duration": { + "default": "mdi:timer-lock-open" + } + } + } +} diff --git a/homeassistant/components/tedee/sensor.py b/homeassistant/components/tedee/sensor.py index 225686f6b18..cd01e9d04be 100644 --- a/homeassistant/components/tedee/sensor.py +++ b/homeassistant/components/tedee/sensor.py @@ -42,7 +42,6 @@ ENTITIES: tuple[TedeeSensorEntityDescription, ...] = ( device_class=SensorDeviceClass.DURATION, native_unit_of_measurement=UnitOfTime.SECONDS, state_class=SensorStateClass.MEASUREMENT, - icon="mdi:timer-lock-open", value_fn=lambda lock: lock.duration_pullspring, entity_category=EntityCategory.DIAGNOSTIC, ), diff --git a/tests/components/tedee/snapshots/test_sensor.ambr b/tests/components/tedee/snapshots/test_sensor.ambr index d1be2839826..5a05a7c7d22 100644 --- a/tests/components/tedee/snapshots/test_sensor.ambr +++ b/tests/components/tedee/snapshots/test_sensor.ambr @@ -59,7 +59,7 @@ 'options': dict({ }), 'original_device_class': , - 'original_icon': 'mdi:timer-lock-open', + 'original_icon': None, 'original_name': 'Pullspring duration', 'platform': 'tedee', 'previous_unique_id': None, @@ -89,7 +89,6 @@ 'attributes': ReadOnlyDict({ 'device_class': 'duration', 'friendly_name': 'Lock-1A2B Pullspring duration', - 'icon': 'mdi:timer-lock-open', 'state_class': , 'unit_of_measurement': , }),