1
0
mirror of https://github.com/home-assistant/core synced 2024-07-08 20:17:01 +00:00

Remove unused fields from unifiprotect event sensors (#120568)

This commit is contained in:
J. Nick Koston 2024-06-26 20:37:08 -05:00 committed by GitHub
parent 2449e2029e
commit 5e1c8b0c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -426,14 +426,12 @@ EVENT_SENSORS: tuple[ProtectBinaryEventEntityDescription, ...] = (
device_class=BinarySensorDeviceClass.OCCUPANCY,
icon="mdi:doorbell-video",
ufp_required_field="feature_flags.is_doorbell",
ufp_value="is_ringing",
ufp_event_obj="last_ring_event",
),
ProtectBinaryEventEntityDescription(
key="motion",
name="Motion",
device_class=BinarySensorDeviceClass.MOTION,
ufp_value="is_motion_currently_detected",
ufp_enabled="is_motion_detection_on",
ufp_event_obj="last_motion_event",
),