esphome/esphome
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
..
components Add support for new modes in Tuya Climate (#5159) 2024-03-20 19:40:14 -05:00
core Bump ESP8266 Arduino versions (#5359) 2024-03-20 21:16:10 +13:00
dashboard Require xsrf/csrf when using a password (#6396) 2024-03-19 13:39:01 +13:00
__init__.py
__main__.py Check permissions (#6255) 2024-03-11 13:33:31 +13:00
automation.py
codegen.py Add datetime date entities (#6191) 2024-03-11 07:52:22 +13:00
config_helpers.py feat(packages): support removing components (#5821) 2023-12-06 10:04:17 +09:00
config_validation.py feat(MQTT): Add QoS option for each MQTT component (#6279) 2024-03-11 13:12:52 +13:00
config.py Bump black from 23.12.1 to 24.2.0 (#6221) 2024-02-21 15:53:50 +13:00
const.py Bump version to 2024.4.0-dev 2024-03-13 16:33:43 +13:00
coroutine.py
cpp_generator.py update docstrings in cpp_generator.py (#6212) 2024-02-12 10:08:32 +13:00
cpp_helpers.py Allow validation of pins based on hub config (#5647) 2023-11-02 15:32:00 +13:00
cpp_types.py Add datetime date entities (#6191) 2024-03-11 07:52:22 +13:00
espota2.py Improve the error message on OTA version mismatch (#6259) 2024-02-22 14:35:21 +13:00
external_files.py download font from url on build (#5254) 2024-03-13 12:07:40 +13:00
final_validate.py
git.py
helpers.py Enable networking and some other components on host platform (#6114) 2024-01-19 10:10:23 +09:00
loader.py image: allow the image to by auto-loaded by animation (#5139) 2023-12-20 10:33:05 +00:00
log.py Suppress full config output of "esphome config" when -q option is used. (#5852) 2023-12-05 08:52:02 +09:00
mqtt.py
pins.py Fix pin reuse error with pin expanders (#5973) 2023-12-20 10:42:27 +00:00
platformio_api.py
schema_extractors.py Bump black from 23.12.1 to 24.2.0 (#6221) 2024-02-21 15:53:50 +13:00
storage_json.py Refactor StorageJSON to keep loaded_integrations a set until its converted to JSON (#5793) 2023-11-19 22:31:00 -05:00
types.py Bump black from 23.12.1 to 24.2.0 (#6221) 2024-02-21 15:53:50 +13:00
util.py Checks for pins used in multiple places (#5666) 2023-12-05 08:56:53 +09:00
voluptuous_schema.py Bump voluptuous from 0.14.1 to 0.14.2 (#6181) 2024-02-21 16:57:38 +13:00
vscode.py
wizard.py Prevent network config on rpipico board (#5832) 2024-02-19 14:29:41 +13:00
writer.py image: allow the image to by auto-loaded by animation (#5139) 2023-12-20 10:33:05 +00:00
yaml_util.py Ensure filename is shown when YAML raises an error (#6139) 2024-01-23 23:11:03 -06:00
zeroconf.py Bump zeroconf timeout to 3000 (#6270) 2024-02-22 14:26:00 +13:00