async def test_switch_camera_privacy(hass: HomeAssistant, camera: Camera):
    'Tests Privacy Mode switch for cameras.'
    description = CAMERA_SWITCHES[4]
    camera.__fields__['set_privacy'] = Mock()
    camera.set_privacy = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera, description)
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_privacy.assert_called_once_with(True, 0, RecordingMode.NEVER)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_privacy.assert_called_with(False, camera.mic_volume, camera.recording_settings.mode)
Tests Privacy Mode switch for cameras.
async def test_switch_camera_privacy(hass: HomeAssistant, camera: Camera):
    
    description = CAMERA_SWITCHES[4]
    camera.__fields__['set_privacy'] = Mock()
    camera.set_privacy = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera, description)
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_privacy.assert_called_once_with(True, 0, RecordingMode.NEVER)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_privacy.assert_called_with(False, camera.mic_volume, camera.recording_settings.mode)