Files
core/homeassistant/components/switch
Anders Melchiorsen 9f68fd9184 Flux switch: avoid updates when off (#7363)
* Flux switch: avoid updates when off

Calling turn_on when the switch is already on would orphan the existing
time tracker, losing our ability to cancel it when turn_off is called.

* Cleanups

The self.is_on property can now be found from self.unsub_tracker, so
get rid of the self._state attribute.

Add an entry guard to turn_on, making further conditionals unnecessary.
2017-04-30 00:05:29 -07:00
..
2017-03-04 15:10:36 -08:00
2017-03-26 15:48:28 +02:00
2017-04-18 09:03:56 -07:00
2017-03-30 00:50:53 -07:00
2017-03-10 14:56:13 +01:00
2017-03-04 15:10:36 -08:00
2017-03-25 15:28:16 +01:00