Skip to content

Commit 5e3aa06

Browse files
author
Erkka Tahvanainen
committed
Remove yaml warning
1 parent c8cffab commit 5e3aa06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

custom_components/jablotron80/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
from homeassistant.components.button import DOMAIN as PLATFORM_BUTTON
77
from homeassistant.config_entries import ConfigEntry
88
from homeassistant.core import HomeAssistant
9-
from homeassistant.helpers import device_registry as dr
10-
9+
from homeassistant.helpers import device_registry as dr, config_validation as cv
1110
#from . import hub
1211
from .const import (DOMAIN,DATA_JABLOTRON, DATA_OPTIONS_UPDATE_UNSUBSCRIBER, NAME,CABLE_MODEL,MANUFACTURER,CABLE_MODELS)
1312
from .jablotron import JA80CentralUnit
1413
# List of platforms to support. There should be a matching .py file for each,
1514
# eg <cover.py> and <sensor.py>
1615
PLATFORMS = [PLATFORM_ALARM_CONTROL_PANEL,PLATFORM_BINARY_SENSOR,PLATFORM_SENSOR, PLATFORM_BUTTON]
17-
16+
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
1817

1918
async def async_setup(hass: HomeAssistant, config: dict):
2019
# Ensure our name space for storing objects is a known type. A dict is

0 commit comments

Comments
 (0)