Skip to content

Commit

Permalink
Use correct constant in rest tests (home-assistant#122765)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Jul 29, 2024
1 parent 9e10126 commit 9ce7779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/components/rest/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ce7779

Please sign in to comment.