mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add empty config schema to integrations p-s (#93700)
This commit is contained in:
parent
6cc5bee960
commit
8896b27f70
@ -63,6 +63,8 @@ SCHEMA_SERVICE_NOTIFICATION = vol.Schema(
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
@bind_hass
|
||||||
def create(
|
def create(
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from . import issue_handler, websocket_api
|
from . import issue_handler, websocket_api
|
||||||
@ -16,6 +17,7 @@ __all__ = [
|
|||||||
"RepairsFlow",
|
"RepairsFlow",
|
||||||
"RepairsFlowManager",
|
"RepairsFlowManager",
|
||||||
]
|
]
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
def repairs_flow_manager(hass: HomeAssistant) -> RepairsFlowManager | None:
|
def repairs_flow_manager(hass: HomeAssistant) -> RepairsFlowManager | None:
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
"""The Safe Mode integration."""
|
"""The Safe Mode integration."""
|
||||||
from homeassistant.components import persistent_notification
|
from homeassistant.components import persistent_notification
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
DOMAIN = "safe_mode"
|
DOMAIN = "safe_mode"
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the Safe Mode component."""
|
"""Set up the Safe Mode component."""
|
||||||
|
@ -10,13 +10,19 @@ import voluptuous as vol
|
|||||||
from homeassistant.components import automation, group, person, script, websocket_api
|
from homeassistant.components import automation, group, person, script, websocket_api
|
||||||
from homeassistant.components.homeassistant import scene
|
from homeassistant.components.homeassistant import scene
|
||||||
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
||||||
from homeassistant.helpers import device_registry as dr, entity_registry as er
|
from homeassistant.helpers import (
|
||||||
|
config_validation as cv,
|
||||||
|
device_registry as dr,
|
||||||
|
entity_registry as er,
|
||||||
|
)
|
||||||
from homeassistant.helpers.entity import entity_sources as get_entity_sources
|
from homeassistant.helpers.entity import entity_sources as get_entity_sources
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
DOMAIN = "search"
|
DOMAIN = "search"
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Set up the Search component."""
|
"""Set up the Search component."""
|
||||||
|
@ -48,7 +48,7 @@ from homeassistant.const import (
|
|||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, callback as core_callback
|
from homeassistant.core import HomeAssistant, callback as core_callback
|
||||||
from homeassistant.data_entry_flow import BaseServiceInfo
|
from homeassistant.data_entry_flow import BaseServiceInfo
|
||||||
from homeassistant.helpers import discovery_flow
|
from homeassistant.helpers import config_validation as cv, discovery_flow
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
from homeassistant.helpers.event import async_track_time_interval
|
from homeassistant.helpers.event import async_track_time_interval
|
||||||
from homeassistant.helpers.instance_id import async_get as async_get_instance_id
|
from homeassistant.helpers.instance_id import async_get as async_get_instance_id
|
||||||
@ -106,6 +106,9 @@ PRIMARY_MATCH_KEYS = [
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
@dataclass(slots=True)
|
@dataclass(slots=True)
|
||||||
class SsdpServiceInfo(BaseServiceInfo):
|
class SsdpServiceInfo(BaseServiceInfo):
|
||||||
"""Prepared info from ssdp/upnp entries."""
|
"""Prepared info from ssdp/upnp entries."""
|
||||||
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||||||
Platform,
|
Platform,
|
||||||
)
|
)
|
||||||
from homeassistant.core import CALLBACK_TYPE, Event, HomeAssistant, callback
|
from homeassistant.core import CALLBACK_TYPE, Event, HomeAssistant, callback
|
||||||
from homeassistant.helpers import event
|
from homeassistant.helpers import config_validation as cv, event
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.helpers.integration_platform import (
|
from homeassistant.helpers.integration_platform import (
|
||||||
async_process_integration_platform_for_component,
|
async_process_integration_platform_for_component,
|
||||||
@ -80,6 +80,9 @@ _PHASE_UPDATES = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||||
"""Track the state of the sun."""
|
"""Track the state of the sun."""
|
||||||
hass.async_create_task(
|
hass.async_create_task(
|
||||||
|
@ -14,7 +14,11 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.components import websocket_api
|
from homeassistant.components import websocket_api
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers import aiohttp_client, integration_platform
|
from homeassistant.helpers import (
|
||||||
|
aiohttp_client,
|
||||||
|
config_validation as cv,
|
||||||
|
integration_platform,
|
||||||
|
)
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.loader import bind_hass
|
from homeassistant.loader import bind_hass
|
||||||
|
|
||||||
@ -24,6 +28,8 @@ DOMAIN = "system_health"
|
|||||||
|
|
||||||
INFO_CALLBACK_TIMEOUT = 5
|
INFO_CALLBACK_TIMEOUT = 5
|
||||||
|
|
||||||
|
CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
|
||||||
|
|
||||||
|
|
||||||
@bind_hass
|
@bind_hass
|
||||||
@callback
|
@callback
|
||||||
|
Loading…
x
Reference in New Issue
Block a user