Use a constant to reference homeassistant domain (#113889)

* Use CONF_CORE to reference `homeassistant` domain

* Just use DOMAIN

* USE DOMAIN for `homeasistant` domain in config_schema.py

* Use DOMAIN_HA as constant for homeassistant domain

* Rename CONF_CORE to DOMAIN_HA

* Rename DOMAIN_HA to HA_DOMAIN

* Use relative import

* Use direct imports
This commit is contained in:
Jan Bouwhuis 2024-03-23 19:58:39 +01:00 committed by GitHub
parent c661622332
commit a4f52cc622
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 51 additions and 43 deletions

View file

@ -4,13 +4,15 @@ from __future__ import annotations
import ast
from homeassistant.core import DOMAIN as HA_DOMAIN
from .model import Config, Integration
CONFIG_SCHEMA_IGNORE = {
# Configuration under the homeassistant key is a special case, it's handled by
# conf_util.async_process_ha_core_config already during bootstrapping, not by
# a schema in the homeassistant integration.
"homeassistant",
HA_DOMAIN,
}