See https://github.com/custom-components/alexa_media_player/issues/1281#event-4739742011 and https://github.com/dermotduffy/hass-motioneye/blob/main/custom_components/motioneye/init.py#L380-L389