Use correct constant in rest tests (#122765)

pull/122766/head
epenet 2024-07-29 12:59:57 +02:00 committed by GitHub
parent 9e10126505
commit 9ce7779bde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from homeassistant.const import (
STATE_UNAVAILABLE, STATE_UNAVAILABLE,
UnitOfInformation, UnitOfInformation,
) )
from homeassistant.core import HomeAssistant from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
from homeassistant.setup import async_setup_component from homeassistant.setup import async_setup_component
from homeassistant.util.dt import utcnow 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_11": {"rest": {"resource": "http://url1"}},
"pack_list": {"rest": [{"resource": "http://url2"}]}, "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) await hass_config.merge_packages_config(hass, config, packages)
assert len(config) == 2 assert len(config) == 2