Skip to content

Commit 1da31c0

Browse files
authored
Move icons to icons.json for unifiprotect (home-assistant#158800)
Co-authored-by: RaHehl <[email protected]>
1 parent 41ad15e commit 1da31c0

File tree

8 files changed

+418
-152
lines changed

8 files changed

+418
-152
lines changed

homeassistant/components/unifiprotect/binary_sensor.py

Lines changed: 0 additions & 53 deletions
Large diffs are not rendered by default.

homeassistant/components/unifiprotect/button.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class ProtectButtonEntityDescription(
6060
key="unadopt",
6161
translation_key="unadopt_device",
6262
entity_registry_enabled_default=False,
63-
icon="mdi:delete",
6463
ufp_press="unadopt",
6564
ufp_perm=PermRequired.DELETE,
6665
),
@@ -69,15 +68,13 @@ class ProtectButtonEntityDescription(
6968
ADOPT_BUTTON = ProtectButtonEntityDescription[ProtectAdoptableDeviceModel](
7069
key="adopt",
7170
translation_key="adopt_device",
72-
icon="mdi:plus-circle",
7371
ufp_press="adopt",
7472
)
7573

7674
SENSOR_BUTTONS: tuple[ProtectButtonEntityDescription, ...] = (
7775
ProtectButtonEntityDescription(
7876
key="clear_tamper",
7977
translation_key="clear_tamper",
80-
icon="mdi:notification-clear-all",
8178
ufp_press="clear_tamper",
8279
ufp_perm=PermRequired.WRITE,
8380
),
@@ -88,13 +85,11 @@ class ProtectButtonEntityDescription(
8885
key="play",
8986
translation_key="play_chime",
9087
device_class=DEVICE_CLASS_CHIME_BUTTON,
91-
icon="mdi:play",
9288
ufp_press="play",
9389
),
9490
ProtectButtonEntityDescription(
9591
key="play_buzzer",
9692
translation_key="play_buzzer",
97-
icon="mdi:play",
9893
ufp_press="play_buzzer",
9994
),
10095
)

homeassistant/components/unifiprotect/event.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ def _async_update_device_from_protect(self, device: ProtectDeviceType) -> None:
365365
key="doorbell",
366366
translation_key="doorbell",
367367
device_class=EventDeviceClass.DOORBELL,
368-
icon="mdi:doorbell-video",
369368
ufp_required_field="feature_flags.is_doorbell",
370369
ufp_event_obj="last_ring_event",
371370
event_types=[EVENT_TYPE_DOORBELL_RING],
@@ -374,7 +373,6 @@ def _async_update_device_from_protect(self, device: ProtectDeviceType) -> None:
374373
ProtectEventEntityDescription(
375374
key="nfc",
376375
translation_key="nfc",
377-
icon="mdi:nfc",
378376
ufp_required_field="feature_flags.support_nfc",
379377
ufp_event_obj="last_nfc_card_scanned_event",
380378
event_types=[EVENT_TYPE_NFC_SCANNED],
@@ -383,7 +381,6 @@ def _async_update_device_from_protect(self, device: ProtectDeviceType) -> None:
383381
ProtectEventEntityDescription(
384382
key="fingerprint",
385383
translation_key="fingerprint",
386-
icon="mdi:fingerprint",
387384
ufp_required_field="feature_flags.has_fingerprint_sensor",
388385
ufp_event_obj="last_fingerprint_identified_event",
389386
event_types=[
@@ -395,7 +392,6 @@ def _async_update_device_from_protect(self, device: ProtectDeviceType) -> None:
395392
ProtectEventEntityDescription(
396393
key="vehicle",
397394
translation_key="vehicle",
398-
icon="mdi:car",
399395
ufp_required_field="feature_flags.has_smart_detect",
400396
ufp_event_obj="last_smart_detect_event",
401397
event_types=[EVENT_TYPE_VEHICLE_DETECTED],

0 commit comments

Comments
 (0)