Make config flows general based on entities

This commit is contained in:
Pierre Ståhl
2020-09-08 11:59:39 +02:00
parent b8333affc5
commit 0600b2730b
5 changed files with 271 additions and 206 deletions

View File

@@ -1,6 +1,9 @@
"""Constants for localtuya integration."""
CONF_DEVICE_TYPE = "device_type"
ATTR_CURRENT = 'current'
ATTR_CURRENT_CONSUMPTION = 'current_consumption'
ATTR_VOLTAGE = 'voltage'
CONF_LOCAL_KEY = "local_key"
CONF_PROTOCOL_VERSION = "protocol_version"
CONF_CURRENT = "current"
@@ -9,4 +12,5 @@ CONF_VOLTAGE = "voltage"
DOMAIN = "localtuya"
DEVICE_TYPE_POWER_OUTLET = "Power Outlet"
# Platforms in this list must support config flows
PLATFORMS = ["switch"]