Add support for new modes in Tuya Climate (#5159)
* Add support support for new modes
Added support for Fan Only Mode, Dry Mode, Swing Mode and Fan Speed Control.
Also added/fixed support for entity states syncing with current operation mode.
* Add support for more climate modes in climate.tuya
Added support for Fan Only Mode, Dry Mode, Swing Mode and Fan Speed Control.
Also added/fixed support for entity states syncing with current operation mode.
This commit fixes the namespace, because I uploaded the test files to start with.
* Code Formatting Changes per Clang format.
* More clang formatting fixes.
* Breaking Change: Group YAML entries by type
Add grouping to Preset, Swing Mode, Fan Speed and Active State. This is a breaking change.
* Formatting Changes for validation
Formatting changes to be compliant with black and flake8. Also changed constants to match expected format.
* More constant value fixes
* Final black formatting check?
* Changes to init.py according to reviewer requests
Make changes to _init_.py according to https://github.com/esphome/esphome/pull/5159/files/649b923804c05fa6ee750e824e3d7d70fadeabd9#r1278620976, https://github.com/esphome/esphome/pull/5159/files/649b923804c05fa6ee750e824e3d7d70fadeabd9#r1278621039, https://github.com/esphome/esphome/pull/5159/files/649b923804c05fa6ee750e824e3d7d70fadeabd9#r1278620904, and https://github.com/esphome/esphome/pull/5159/files/649b923804c05fa6ee750e824e3d7d70fadeabd9#r1278620549
Also put Sleep preset in its own config block to be consistent with other presets and fix logic for validate_cooling_values function to better align with existing documentation.
* Commit reviewed change
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
* update deprecated config option wording
* add "this->" to member variables that were missed
adding "this->" to some member variables in the swing_mode function.
* Update _init_.py to use Python 3.8 Walrus operator
Adding Walrus Operator in the to_code function for _init_.py similar to https://github.com/esphome/esphome/pull/5181
* Fix Temperature_Multiplier config entry for code generation
---------
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>