Files
core/homeassistant/components
ruohan.chen 4ac9e7edf4 fix generic_thermostat bug when restore state from HA start up (#12134)
* fix generic_thermostat bug when restore state from HA start up

if you don't set "initial_operation_mode" in config, you will get
`self._enabled = True` when init GenericThermostat. And then you will
miss the `if self._current_operation != STATE_OFF` statement and the
self._enabled still keep `True`. That's the problem

* add a test to describe the restore case
2018-02-03 16:59:19 +01:00
..
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-27 11:58:27 -08:00
2018-01-30 10:39:39 +01:00
2018-01-20 22:35:38 -08:00
2018-01-30 10:39:39 +01:00
2018-01-30 10:39:39 +01:00
2018-01-30 10:39:39 +01:00
2018-01-29 23:37:19 +01:00
2018-01-29 00:24:08 -08:00
2018-01-29 23:37:19 +01:00
2018-02-03 08:29:55 -05:00
2018-01-20 22:35:38 -08:00
2018-02-02 22:35:34 +01:00
2018-01-29 23:37:19 +01:00
2018-02-03 16:55:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-15 14:25:59 -08:00
2018-01-30 14:44:05 -08:00
2018-01-27 11:58:27 -08:00
2018-01-29 00:24:08 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-28 18:04:40 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-23 23:03:54 +01:00
2018-01-29 23:37:19 +01:00
2018-01-27 11:58:27 -08:00
2018-01-29 00:23:53 -08:00
2018-02-01 11:24:02 +01:00
2018-01-29 23:37:19 +01:00
2018-01-23 11:39:55 +01:00
2018-01-29 00:24:08 -08:00
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-30 14:44:05 -08:00
2018-01-28 18:04:54 +01:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2017-11-14 10:40:44 +01:00
2018-01-27 11:58:27 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-15 14:24:12 -08:00
2018-01-27 11:58:27 -08:00
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-18 23:37:24 +01:00
2018-01-29 23:37:19 +01:00
2017-11-18 14:36:01 -08:00
2017-12-26 11:12:28 -08:00
2017-11-03 21:18:32 -07:00
2018-01-29 00:24:08 -08:00
2018-02-02 22:35:34 +01:00
2018-01-20 22:35:38 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-20 22:35:38 -08:00
2018-01-20 22:35:38 -08:00
2018-01-27 11:58:27 -08:00
2018-01-30 14:44:05 -08:00
2018-01-22 22:54:41 -08:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-29 00:23:53 -08:00
2018-02-02 17:28:54 -08:00
2018-01-20 22:35:38 -08:00
2017-11-22 09:37:20 +00:00
2018-01-29 23:37:19 +01:00
2017-12-07 07:47:19 +01:00
2018-01-29 23:37:19 +01:00
2018-01-15 23:08:48 +01:00
2018-01-09 23:55:14 -08:00