Add config entry only config schema to integrations a-r (#93899)
This commit is contained in:
parent
f2ea2a886c
commit
a4b8b4f7c2
10 changed files with 38 additions and 9 deletions
|
@ -6,13 +6,15 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.const import CONF_API_TOKEN, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers import config_validation as cv, discovery
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .const import DATA_HASS_CONFIG, DOMAIN
|
||||
|
||||
PLATFORMS = [Platform.NOTIFY]
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the Discord component."""
|
||||
|
|
|
@ -14,7 +14,11 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.const import CONF_HOST, EVENT_HOMEASSISTANT_STARTED, Platform
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
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.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
async_dispatcher_send,
|
||||
|
@ -71,6 +75,8 @@ NAME_TO_WHITE_CHANNEL_TYPE: Final = {
|
|||
option.name.lower(): option for option in WhiteChannelType
|
||||
}
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
@callback
|
||||
def async_wifi_bulb_for_host(
|
||||
|
|
|
@ -44,6 +44,8 @@ SERVICE_SEND_TEXT_COMMAND_SCHEMA = vol.All(
|
|||
},
|
||||
)
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up Google Assistant SDK component."""
|
||||
|
|
|
@ -7,7 +7,7 @@ from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
|||
from homeassistant.const import CONF_NAME, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers import config_validation as cv, discovery
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.config_entry_oauth2_flow import (
|
||||
OAuth2Session,
|
||||
|
@ -21,6 +21,8 @@ from .services import async_setup_services
|
|||
|
||||
PLATFORMS = [Platform.NOTIFY, Platform.SENSOR]
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the Google Mail platform."""
|
||||
|
|
|
@ -16,16 +16,18 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.const import ATTR_IDENTIFIERS, EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import Event, HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.helpers import device_registry as dr
|
||||
from homeassistant.helpers import config_validation as cv, device_registry as dr
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .config_flow import normalize_hkid
|
||||
from .connection import HKDevice
|
||||
from .const import KNOWN_DEVICES
|
||||
from .const import DOMAIN, KNOWN_DEVICES
|
||||
from .utils import async_get_controller
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up a HomeKit connection on a config entry."""
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .camera import MjpegCamera
|
||||
from .const import CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, PLATFORMS
|
||||
from .const import CONF_MJPEG_URL, CONF_STILL_IMAGE_URL, DOMAIN, PLATFORMS
|
||||
from .util import filter_urllib3_logging
|
||||
|
||||
__all__ = [
|
||||
|
@ -15,6 +16,8 @@ __all__ = [
|
|||
"filter_urllib3_logging",
|
||||
]
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the MJPEG IP Camera integration."""
|
||||
|
|
|
@ -18,7 +18,11 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.const import CONF_URL, CONF_VERIFY_SSL, EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||
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.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.debounce import Debouncer
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
|
@ -54,6 +58,8 @@ from .view import PlexImageView
|
|||
|
||||
_LOGGER = logging.getLogger(__package__)
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
def is_plex_media_id(media_content_id):
|
||||
"""Return whether the media_content_id is a valid Plex media_id."""
|
||||
|
|
|
@ -53,6 +53,8 @@ PS4_COMMAND_SCHEMA = vol.Schema(
|
|||
|
||||
PLATFORMS = [Platform.MEDIA_PLAYER]
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
class PS4Data:
|
||||
"""Init Data Class."""
|
||||
|
|
|
@ -14,7 +14,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.core import Event, HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers import config_validation as cv, discovery
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .api import PushBulletNotificationProvider
|
||||
|
@ -24,6 +24,8 @@ PLATFORMS = [Platform.SENSOR]
|
|||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the pushbullet component."""
|
||||
|
|
|
@ -7,13 +7,15 @@ from homeassistant.config_entries import ConfigEntry
|
|||
from homeassistant.const import CONF_API_KEY, CONF_NAME, Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers import config_validation as cv, discovery
|
||||
from homeassistant.helpers.typing import ConfigType
|
||||
|
||||
from .const import CONF_USER_KEY, DATA_HASS_CONFIG, DOMAIN
|
||||
|
||||
PLATFORMS = [Platform.NOTIFY]
|
||||
|
||||
CONFIG_SCHEMA = cv.no_yaml_config_schema(DOMAIN)
|
||||
|
||||
|
||||
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
"""Set up the pushover component."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue