Fix Dynalite to explicitly check valid device class (#36418)

* changed back to check for class in DEVICE_CLASSES

* created a flow that would go through everything as it was blocking the commit
and the cv rules prevent an input that would get to that flow

* moved DEFAULT_COVER_CLASS from const to cover
This commit is contained in:
Ziv authored and GitHub committed 2020-06-04 15:34:28 +02:00
1 parent 99318b7b11
commit 1edbdcb67b
2 files changed
+11 -5

No files matched your search

@@ -1,7 +1,6 @@
"""Constants for the Dynalite component."""
import logging
from homeassistant.components.cover import DEVICE_CLASS_SHUTTER
from homeassistant.const import CONF_ROOM
LOGGER = logging.getLogger(__package__)
@@ -36,7 +35,6 @@ CONF_TILT_TIME = "tilt"
CONF_TIME_COVER = "time_cover"
DEFAULT_CHANNEL_TYPE = "light"
DEFAULT_COVER_CLASS = DEVICE_CLASS_SHUTTER
DEFAULT_NAME = "dynalite"
DEFAULT_PORT = 12345
DEFAULT_TEMPLATES = {