Add config flow support for cover

This commit is contained in:
Pierre Ståhl
2020-09-10 10:20:14 +02:00
parent ae64158da5
commit edc9debf83
4 changed files with 148 additions and 133 deletions

View File

@@ -6,11 +6,18 @@ ATTR_VOLTAGE = 'voltage'
CONF_LOCAL_KEY = "local_key"
CONF_PROTOCOL_VERSION = "protocol_version"
# switch
CONF_CURRENT = "current"
CONF_CURRENT_CONSUMPTION = "current_consumption"
CONF_VOLTAGE = "voltage"
# cover
CONF_OPEN_CMD = 'open_cmd'
CONF_CLOSE_CMD = 'close_cmd'
CONF_STOP_CMD = 'stop_cmd'
DOMAIN = "localtuya"
# Platforms in this list must support config flows
PLATFORMS = ["light", "switch"]
PLATFORMS = ["cover", "light", "switch"]