Files
home-assistant-core/homeassistant/components/switch
Abhishek Anand 65bd7d2326 Generalized REST switch to enable templating and configurable timeout. (#3329)
* successfully tested the "remote temperature mode" switch for the radio thermostat

* removed logging and interpreted None as Off.

* turn_off value is also templated now -- can depend on state

Also, undid accidental removal of error logging.

* ensured backward compatibility of config file

if value_template is not provided, the update function behaves as before

* ran autopep8 --in-place

* fixed another complaint of tox

* addressed the comments of balloob

* undid acccidental log.error to log.info

* timeout : 50 -> 10

* added a timeout parameter

* removed the stray '-', better names for the failure case

* string comparisons after .lower(), as suggested by balloob

* addressed balloob's latest requests

* making flake happy

* value_template --> is_on_template in config file

* moved CONF_IS_ON_TEMPLATE to local file

* null checks

* addressed flake error

* properly comparing template text when is_on is not a template.
2016-10-27 22:34:22 -07:00
..
2016-10-07 11:48:38 -07:00
2016-10-11 00:56:57 -07:00
2016-10-04 00:51:45 -07:00
2016-09-27 21:29:55 -07:00
…
2016-09-04 19:17:40 -06:00
2016-08-24 22:35:09 -06:00
2016-10-01 22:57:15 -07:00
2016-09-09 19:33:12 +02:00
2016-09-13 23:03:30 -07:00
2016-09-17 10:29:58 -07:00
2016-10-24 21:49:49 -07:00
2016-09-27 21:29:55 -07:00
2016-10-01 23:23:31 -07:00
2016-10-23 23:48:01 -07:00
2016-09-03 00:09:14 +02:00
2016-08-09 19:45:40 -07:00
2016-10-17 19:53:50 -07:00
2016-09-13 07:23:53 +02:00
2016-07-19 19:13:33 -07:00
2016-08-24 22:36:41 -06:00
…
2016-09-20 00:05:54 -07:00
2016-09-06 18:28:55 -07:00
2016-10-14 20:56:40 -07:00