Prevent ICMP Test During Scheduled Maintenance

Hello,

I’m using the following API call when a device is in a Scheduled Maintenance window:
curl -H “X-Auth-Token: key” http://librenms.some.place.com/api/v0/devices?type=down

Unfortunately, the device.status changes to “down” because of the ICMP check that is not disabled during the Scheduled Maintenance window.

Would it be possible to disable the status change while the device is in a Scheduled Maintenance window or can the API be updated to check if the device is in a Maintenance Window in-addition to its device.status?

Thanks!