Fix daemon schedule syncing when there are multiple events for the same device.