Add support for Tuya Climate devices (#1076)

* Start support for tuya climate devices

* Add tuya climate to test4

* Fix lint and cast

* Remove blank line

* Try to display accurate action based on observed behaviour.

* Fix action when in off mode

* Improve config dump

* merge use of CONF_SWITCH_DATAPOINT

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Jesse Hills
2020-07-12 10:04:34 +12:00
committed by GitHub
parent c3acf08c02
commit 68d29c5af5
8 changed files with 251 additions and 7 deletions
+1 -3
View File
@@ -1,13 +1,11 @@
from esphome.components import switch
import esphome.config_validation as cv
import esphome.codegen as cg
from esphome.const import CONF_ID
from esphome.const import CONF_ID, CONF_SWITCH_DATAPOINT
from .. import tuya_ns, CONF_TUYA_ID, Tuya
DEPENDENCIES = ['tuya']
CONF_SWITCH_DATAPOINT = "switch_datapoint"
TuyaSwitch = tuya_ns.class_('TuyaSwitch', switch.Switch, cg.Component)
CONFIG_SCHEMA = switch.SWITCH_SCHEMA.extend({