async def test_switch_camera_ssh(hass: HomeAssistant, camera: Camera, mock_entry: MockEntityFixture):
    'Tests SSH switch for cameras.'
    description = CAMERA_SWITCHES[0]
    camera.__fields__['set_ssh'] = Mock()
    camera.set_ssh = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera, description)
    (await enable_entity(hass, mock_entry.entry.entry_id, entity_id))
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_ssh.assert_called_once_with(True)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_ssh.assert_called_with(False)
Tests SSH switch for cameras.
async def test_switch_camera_ssh(hass: HomeAssistant, camera: Camera, mock_entry: MockEntityFixture):
    
    description = CAMERA_SWITCHES[0]
    camera.__fields__['set_ssh'] = Mock()
    camera.set_ssh = AsyncMock()
    (_, entity_id) = ids_from_device_description(Platform.SWITCH, camera, description)
    (await enable_entity(hass, mock_entry.entry.entry_id, entity_id))
    (await hass.services.async_call('switch', 'turn_on', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_ssh.assert_called_once_with(True)
    (await hass.services.async_call('switch', 'turn_off', {ATTR_ENTITY_ID: entity_id}, blocking=True))
    camera.set_ssh.assert_called_with(False)