Add support for config flows for switches

This commit is contained in:
Pierre Ståhl
2020-09-06 10:29:39 +02:00
parent 181ba360b7
commit b8333affc5
8 changed files with 322 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
"""Constants for localtuya integration."""
CONF_DEVICE_TYPE = "device_type"
CONF_LOCAL_KEY = "local_key"
CONF_PROTOCOL_VERSION = "protocol_version"
CONF_CURRENT = "current"
CONF_CURRENT_CONSUMPTION = "current_consumption"
CONF_VOLTAGE = "voltage"
DOMAIN = "localtuya"
DEVICE_TYPE_POWER_OUTLET = "Power Outlet"