1
0
mirror of https://github.com/esphome/esphome.git synced 2025-02-22 12:58:15 +00:00
Michael Davidson 8095db6715
Thermostat remove deprecated config (#3643)
* Raise errors for all the now deprecated options

* Fix CONF_DEFAULT_PRESET detection

* Stop attempting to set the non-existent normal_config

* Add support for default presets

* Fix correct detection of Two Point temperature mode

* Fix lint issues

* Fix tests

* Generate correct yaml for equivalent configurations

* Remove debug code

* Only set default preset if the thermostat does not have state to restore

* Add restore_default_preset_on_boot option
If set to True then the default_preset will be applied on every boot. If False (Default) state will be restored from memory as per prior versions

* Apply lint suggestions

* Switch from restore_default_preset_on_boot to an enum for startup_behavior
This gives better self-documentation as well as the option for extending to other options down the track

* Lint fixes

* Rename startup_behavior to on_boot_restore_from
This removes any issues with different English locales

* Fix comparable_preset yaml output alignment

* Add dump of on_boot_restore_from setting

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
2022-09-25 21:59:04 -05:00
..
2022-02-18 09:14:10 +13:00
2022-08-31 13:43:46 +12:00
2022-08-15 10:28:29 +12:00
2022-08-31 13:43:46 +12:00
2022-08-31 13:43:46 +12:00
2022-06-21 17:12:15 +12:00
2022-08-31 13:43:46 +12:00
2022-08-11 13:57:42 +12:00
2022-08-31 13:43:46 +12:00
2022-04-27 08:41:10 +12:00
2022-01-08 21:35:55 +13:00
2021-09-09 09:10:02 +12:00
2022-09-06 12:57:21 +12:00
2022-02-21 12:23:26 +13:00
2022-08-31 13:43:46 +12:00
2022-08-31 13:43:46 +12:00
2022-08-31 13:43:46 +12:00
2022-01-04 10:35:15 +13:00
2022-08-31 13:43:46 +12:00
2021-07-29 19:11:56 +02:00
2021-09-26 21:34:06 +13:00
2021-09-26 21:34:06 +13:00
2021-09-26 21:34:06 +13:00
2022-08-31 13:43:46 +12:00
2022-04-13 10:19:48 +12:00
2021-07-26 14:48:57 +02:00
2022-06-07 22:43:46 +12:00
2022-09-06 12:57:21 +12:00
2022-08-11 14:00:09 +12:00
2022-04-13 10:19:48 +12:00
2022-05-19 12:47:33 +12:00
2022-04-13 10:19:48 +12:00
2022-08-31 13:43:46 +12:00
2022-04-26 09:50:36 +12:00
2022-04-13 10:19:48 +12:00
2022-08-31 13:43:46 +12:00
2022-08-31 13:43:46 +12:00
2022-04-04 11:42:10 +12:00
2022-08-31 13:43:46 +12:00
2022-08-31 13:43:46 +12:00
2022-09-14 16:51:20 +12:00
2022-01-23 00:13:46 +13:00
2022-08-15 10:28:29 +12:00