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 Franck Nijhof
parent 2c2261254b
commit dcffd6bd7a
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

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