esphome/esphome/components/tuya
Moriah Morgan 13059805d0
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 649b923804 (r1278620976), 649b923804 (r1278621039), 649b923804 (r1278620904), and 649b923804 (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>
2024-03-20 19:40:14 -05:00
..
binary_sensor Binary Sensor codegen tidyup (#3217) 2022-02-18 10:39:59 +13:00
climate Add support for new modes in Tuya Climate (#5159) 2024-03-20 19:40:14 -05:00
cover Add supports_stop trait to Cover (#3897) 2023-04-23 20:51:32 +00:00
fan Tuya Fan component fix to handle enum datapoint type (#6135) 2024-02-21 10:40:17 +13:00
light tuya_light: fix float->int conversion while setting color temperature (#5067) 2023-07-12 13:28:48 +12:00
number Tuya Number: split "multiply" to a separate option (#5458) 2023-10-03 13:23:18 +13:00
select add select_schema to select component (#4545) 2023-03-26 20:01:35 +00:00
sensor Fix compile with latest esp-idf on esp32c6 (#5677) 2023-11-05 23:13:01 +00:00
switch Tidy up switch schemas (#3754) 2022-08-31 13:43:46 +12:00
text_sensor Handle enum type in tuya text_sensor (#5626) 2023-10-29 22:00:47 +00:00
__init__.py Tuya status gpio support (#3466) 2022-05-16 07:44:14 +12:00
automation.cpp Fix compile warning in Tuya automations (#2837) 2021-12-01 17:11:21 +13:00
automation.h Add vector includes (#4080) 2022-11-24 13:12:55 +13:00
tuya.cpp Remove optional<> for pointer types (#6120) 2024-01-20 02:30:57 +13:00
tuya.h Remove optional<> for pointer types (#6120) 2024-01-20 02:30:57 +13:00