Fix invalid directory for dnsmasq files in asuswrt (#33503)
parent
fb93b79b12
commit
0cf9268ca8
|
@ -51,7 +51,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
cv.ensure_list, [vol.In(SENSOR_TYPES)]
|
||||
),
|
||||
vol.Optional(CONF_INTERFACE, default=DEFAULT_INTERFACE): cv.string,
|
||||
vol.Optional(CONF_DNSMASQ, default=DEFAULT_DNSMASQ): cv.isdir,
|
||||
vol.Optional(CONF_DNSMASQ, default=DEFAULT_DNSMASQ): cv.string,
|
||||
}
|
||||
)
|
||||
},
|
||||
|
|
|
@ -19,9 +19,7 @@ async def test_password_or_pub_key_required(hass):
|
|||
AsusWrt().connection.async_connect = mock_coro_func()
|
||||
AsusWrt().is_connected = False
|
||||
result = await async_setup_component(
|
||||
hass,
|
||||
DOMAIN,
|
||||
{DOMAIN: {CONF_HOST: "fake_host", CONF_USERNAME: "fake_user"}},
|
||||
hass, DOMAIN, {DOMAIN: {CONF_HOST: "fake_host", CONF_USERNAME: "fake_user"}}
|
||||
)
|
||||
assert not result
|
||||
|
||||
|
@ -62,7 +60,7 @@ async def test_specify_non_directory_path_for_dnsmasq(hass):
|
|||
CONF_HOST: "fake_host",
|
||||
CONF_USERNAME: "fake_user",
|
||||
CONF_PASSWORD: "4321",
|
||||
CONF_DNSMASQ: "?non_directory?",
|
||||
CONF_DNSMASQ: 1234,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue