@pytest.fixture(name='camera_none')
async def camera_none_fixture(hass: HomeAssistant, mock_entry: MockEntityFixture, mock_camera: Camera):
    'Fixture for a single camera for testing the switch platform.'
    Camera.__config__.validate_assignment = False
    camera_obj = mock_camera.copy(deep=True)
    camera_obj._api = mock_entry.api
    camera_obj.channels[0]._api = mock_entry.api
    camera_obj.channels[1]._api = mock_entry.api
    camera_obj.channels[2]._api = mock_entry.api
    camera_obj.name = 'Test Camera'
    camera_obj.recording_settings.mode = RecordingMode.DETECTIONS
    camera_obj.feature_flags.has_led_status = False
    camera_obj.feature_flags.has_hdr = False
    camera_obj.feature_flags.video_modes = [VideoMode.DEFAULT]
    camera_obj.feature_flags.has_privacy_mask = False
    camera_obj.feature_flags.has_speaker = False
    camera_obj.feature_flags.has_smart_detect = False
    camera_obj.is_ssh_enabled = False
    camera_obj.osd_settings.is_name_enabled = False
    camera_obj.osd_settings.is_date_enabled = False
    camera_obj.osd_settings.is_logo_enabled = False
    camera_obj.osd_settings.is_debug_enabled = False
    mock_entry.api.bootstrap.reset_objects()
    mock_entry.api.bootstrap.cameras = {camera_obj.id: camera_obj}
    (await hass.config_entries.async_setup(mock_entry.entry.entry_id))
    (await hass.async_block_till_done())
    assert_entity_counts(hass, Platform.SWITCH, 5, 4)
    (yield camera_obj)
    Camera.__config__.validate_assignment = True
Fixture for a single camera for testing the switch platform.
@pytest.fixture(name='camera_none')
async def camera_none_fixture(hass: HomeAssistant, mock_entry: MockEntityFixture, mock_camera: Camera):
    
    Camera.__config__.validate_assignment = False
    camera_obj = mock_camera.copy(deep=True)
    camera_obj._api = mock_entry.api
    camera_obj.channels[0]._api = mock_entry.api
    camera_obj.channels[1]._api = mock_entry.api
    camera_obj.channels[2]._api = mock_entry.api
    camera_obj.name = 'Test Camera'
    camera_obj.recording_settings.mode = RecordingMode.DETECTIONS
    camera_obj.feature_flags.has_led_status = False
    camera_obj.feature_flags.has_hdr = False
    camera_obj.feature_flags.video_modes = [VideoMode.DEFAULT]
    camera_obj.feature_flags.has_privacy_mask = False
    camera_obj.feature_flags.has_speaker = False
    camera_obj.feature_flags.has_smart_detect = False
    camera_obj.is_ssh_enabled = False
    camera_obj.osd_settings.is_name_enabled = False
    camera_obj.osd_settings.is_date_enabled = False
    camera_obj.osd_settings.is_logo_enabled = False
    camera_obj.osd_settings.is_debug_enabled = False
    mock_entry.api.bootstrap.reset_objects()
    mock_entry.api.bootstrap.cameras = {camera_obj.id: camera_obj}
    (await hass.config_entries.async_setup(mock_entry.entry.entry_id))
    (await hass.async_block_till_done())
    assert_entity_counts(hass, Platform.SWITCH, 5, 4)
    (yield camera_obj)
    Camera.__config__.validate_assignment = True