mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Remove empty schema (#45044)
This commit is contained in:
parent
54064b4010
commit
e584902b8b
@ -4,7 +4,6 @@ import logging
|
|||||||
|
|
||||||
from aioflo import async_get_api
|
from aioflo import async_get_api
|
||||||
from aioflo.errors import RequestError
|
from aioflo.errors import RequestError
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
@ -15,8 +14,6 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
|||||||
from .const import CLIENT, DOMAIN
|
from .const import CLIENT, DOMAIN
|
||||||
from .device import FloDeviceDataUpdateCoordinator
|
from .device import FloDeviceDataUpdateCoordinator
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
PLATFORMS = ["binary_sensor", "sensor", "switch"]
|
PLATFORMS = ["binary_sensor", "sensor", "switch"]
|
||||||
|
@ -9,8 +9,6 @@ from homeassistant.helpers import config_validation as cv, integration_platform,
|
|||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: dict):
|
async def async_setup(hass: HomeAssistant, config: dict):
|
||||||
"""Set up the Intent component."""
|
"""Set up the Intent component."""
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
"""Kuler Sky lights integration."""
|
"""Kuler Sky lights integration."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
PLATFORMS = ["light"]
|
PLATFORMS = ["light"]
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import threading
|
|||||||
import time
|
import time
|
||||||
|
|
||||||
import lirc
|
import lirc
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
|
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
|
||||||
|
|
||||||
@ -19,8 +18,6 @@ EVENT_IR_COMMAND_RECEIVED = "ir_command_received"
|
|||||||
|
|
||||||
ICON = "mdi:remote"
|
ICON = "mdi:remote"
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the LIRC capability."""
|
"""Set up the LIRC capability."""
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
from onvif.exceptions import ONVIFAuthError, ONVIFError, ONVIFTimeoutError
|
from onvif.exceptions import ONVIFAuthError, ONVIFError, ONVIFTimeoutError
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.components.ffmpeg import CONF_EXTRA_ARGUMENTS
|
from homeassistant.components.ffmpeg import CONF_EXTRA_ARGUMENTS
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
@ -33,8 +32,6 @@ from .const import (
|
|||||||
)
|
)
|
||||||
from .device import ONVIFDevice
|
from .device import ONVIFDevice
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
|
|
||||||
async def async_setup(hass: HomeAssistant, config: dict):
|
async def async_setup(hass: HomeAssistant, config: dict):
|
||||||
"""Set up the ONVIF component."""
|
"""Set up the ONVIF component."""
|
||||||
|
@ -18,7 +18,6 @@ from openzwavemqtt.const import (
|
|||||||
from openzwavemqtt.models.node import OZWNode
|
from openzwavemqtt.models.node import OZWNode
|
||||||
from openzwavemqtt.models.value import OZWValue
|
from openzwavemqtt.models.value import OZWValue
|
||||||
from openzwavemqtt.util.mqtt_client import MQTTClient
|
from openzwavemqtt.util.mqtt_client import MQTTClient
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.components import mqtt
|
from homeassistant.components import mqtt
|
||||||
from homeassistant.components.hassio.handler import HassioAPIError
|
from homeassistant.components.hassio.handler import HassioAPIError
|
||||||
@ -52,7 +51,6 @@ from .websocket_api import async_register_api
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
DATA_DEVICES = "zwave-mqtt-devices"
|
DATA_DEVICES = "zwave-mqtt-devices"
|
||||||
DATA_STOP_MQTT_CLIENT = "ozw_stop_mqtt_client"
|
DATA_STOP_MQTT_CLIENT = "ozw_stop_mqtt_client"
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ from plugwise.exceptions import (
|
|||||||
XMLDataMissingError,
|
XMLDataMissingError,
|
||||||
)
|
)
|
||||||
from plugwise.smile import Smile
|
from plugwise.smile import Smile
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -46,8 +45,6 @@ from .const import (
|
|||||||
UNDO_UPDATE_LISTENER,
|
UNDO_UPDATE_LISTENER,
|
||||||
)
|
)
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
@ -27,8 +27,6 @@ from .hls import async_setup_hls
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
STREAM_SERVICE_SCHEMA = vol.Schema({vol.Required(CONF_STREAM_SOURCE): cv.string})
|
STREAM_SERVICE_SCHEMA = vol.Schema({vol.Required(CONF_STREAM_SOURCE): cv.string})
|
||||||
|
|
||||||
SERVICE_RECORD_SCHEMA = STREAM_SERVICE_SCHEMA.extend(
|
SERVICE_RECORD_SCHEMA = STREAM_SERVICE_SCHEMA.extend(
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
"""The NEW_NAME integration."""
|
"""The NEW_NAME integration."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
# TODO List the platforms that you want to support.
|
# TODO List the platforms that you want to support.
|
||||||
# For your initial PR, limit it to 1 platform.
|
# For your initial PR, limit it to 1 platform.
|
||||||
PLATFORMS = ["light"]
|
PLATFORMS = ["light"]
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
"""The NEW_NAME integration."""
|
"""The NEW_NAME integration."""
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema({DOMAIN: vol.Schema({})}, extra=vol.ALLOW_EXTRA)
|
|
||||||
|
|
||||||
# TODO List the platforms that you want to support.
|
# TODO List the platforms that you want to support.
|
||||||
# For your initial PR, limit it to 1 platform.
|
# For your initial PR, limit it to 1 platform.
|
||||||
PLATFORMS = ["light"]
|
PLATFORMS = ["light"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user