async def test_switch_camera_highfps(hass: HomeAssistant, camera: Camera):
    'Tests High FPS switch for cameras.'
    description = CAMERA_SWITCHES[3]
    camera.__fields__['set_video_mode'] = Mock()
    camera.set_video_mode = 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_video_mode.assert_called_once_with(VideoMode.HIGH_FPS)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_video_mode.assert_called_with(VideoMode.DEFAULT)
Tests High FPS switch for cameras.
async def test_switch_camera_highfps(hass: HomeAssistant, camera: Camera):
    
    description = CAMERA_SWITCHES[3]
    camera.__fields__['set_video_mode'] = Mock()
    camera.set_video_mode = 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_video_mode.assert_called_once_with(VideoMode.HIGH_FPS)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_video_mode.assert_called_with(VideoMode.DEFAULT)