Jan Losinski fd6fd765b2 Pilight switch: restore last state after restart (#8580)
* Pilight switch: restore last state after restart

This uses the restore_state helper to set the last known state to
pilight switches when the devices are initialized after a HA
restart.

Without this HA forget the state on every restart and needs to be told
the sttae by retoggling the switches. This can cause unwanted effects
as a switch toggling may emit an RF signal.

* Make hound happy

Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>

* Remove entity_id generation as requested in review.

* Make hound happy again.

* fix comments

* fix lint
2017-08-22 16:40:14 +02:00
..
2017-05-02 22:47:20 +02:00
2016-10-11 00:56:57 -07:00
2017-05-02 09:18:47 -07:00
2017-07-11 22:44:01 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 22:47:20 +02:00
2017-08-03 10:51:01 +02:00
2017-04-18 09:03:56 -07:00
2017-05-26 13:12:17 -07:00
2017-05-03 10:11:39 +02:00
2017-01-17 23:40:34 +01:00
2017-06-04 23:56:21 -07:00
2017-06-12 22:27:25 -07:00
2017-05-04 23:50:53 -07:00
2017-03-10 14:56:13 +01:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-07-26 14:03:29 +02:00
2017-05-02 22:47:20 +02:00
2017-06-30 08:53:14 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2016-10-29 13:10:42 -07:00
2017-05-02 22:47:20 +02:00