'Test creating an AsusWRT scanner with a pubkey and no password.'

@mock.patch('homeassistant.components.device_tracker.asuswrt.AsusWrtDeviceScanner', return_value=mock.MagicMock())
def test_get_scanner_with_pubkey_no_password(self, asuswrt_mock):

    conf_dict = {device_tracker.DOMAIN: {CONF_PLATFORM: 'asuswrt', CONF_HOST: 'fake_host', CONF_USERNAME: 'fake_user', CONF_PUB_KEY: FAKEFILE, CONF_TRACK_NEW: True, CONF_CONSIDER_HOME: timedelta(seconds=180)}}
    with assert_setup_component(1, DOMAIN):
        assert setup_component(self.hass, DOMAIN, conf_dict)
    conf_dict[DOMAIN][CONF_MODE] = 'router'
    conf_dict[DOMAIN][CONF_PROTOCOL] = 'ssh'
    conf_dict[DOMAIN][CONF_PORT] = 22
    self.assertEqual(asuswrt_mock.call_count, 1)
    self.assertEqual(asuswrt_mock.call_args, mock.call(conf_dict[DOMAIN]))
