async def test_switch_camera_privacy_already_on(hass: HomeAssistant, camera_privacy: Camera):
    'Tests Privacy Mode switch for cameras with privacy mode defaulted on.'
    description = CAMERA_SWITCHES[4]
    camera_privacy.__fields__['set_privacy'] = Mock()
    camera_privacy.set_privacy = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera_privacy, description)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera_privacy.set_privacy.assert_called_once_with(False, 100, RecordingMode.ALWAYS)
Tests Privacy Mode switch for cameras with privacy mode defaulted on.
async def test_switch_camera_privacy_already_on(hass: HomeAssistant, camera_privacy: Camera):
    
    description = CAMERA_SWITCHES[4]
    camera_privacy.__fields__['set_privacy'] = Mock()
    camera_privacy.set_privacy = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera_privacy, description)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera_privacy.set_privacy.assert_called_once_with(False, 100, RecordingMode.ALWAYS)