Use correct constant in rest tests (#122765)
parent
9e10126505
commit
9ce7779bde
|
@ -16,7 +16,7 @@ from homeassistant.const import (
|
|||
STATE_UNAVAILABLE,
|
||||
UnitOfInformation,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.util.dt import utcnow
|
||||
|
||||
|
@ -468,7 +468,7 @@ async def test_config_schema_via_packages(hass: HomeAssistant) -> None:
|
|||
"pack_11": {"rest": {"resource": "http://url1"}},
|
||||
"pack_list": {"rest": [{"resource": "http://url2"}]},
|
||||
}
|
||||
config = {hass_config.HA_DOMAIN: {hass_config.CONF_PACKAGES: packages}}
|
||||
config = {HOMEASSISTANT_DOMAIN: {hass_config.CONF_PACKAGES: packages}}
|
||||
await hass_config.merge_packages_config(hass, config, packages)
|
||||
|
||||
assert len(config) == 2
|
||||
|
|
Loading…
Reference in New Issue