Sensors not updating/available when DND on

I have a couple of Home Assistant automations to toggle a smart plug based on the value of the battery level sensor of my OnePlus Nord. I have also scheduled the phone to activate Do Not Disturb overnight.
I have noticed that the automations do not work if DND is on. So I watched the value of the battery level sensor in a Home Assistant card as the battery level changed on the phone’s status bar. The change did not update the HA card when DND was on. So, does anyone know if this is the correct DND behaviour? Or is this a bug?
I was expecting the sensor values to update HA regardless of DND status.