Make broadlink switch restore its state #23829
This could break behavior for people relying on the switch to always start up in
Especially if we have a "toggle" switch (with same on/off commands), it is very useful to restore the state in home assistant. We can then guess the current state and actually switch the device on or off. This should also work after a HA restart. Which it didn't so far...
I copied the method to do so from pilight switch to broadlink switch.
Related issue (if applicable): none.
Pull request with documentation for home-assistant.io (if applicable): none
Example entry for