beveradb / sonoff-lan-mode-homeassistant

Home Assistant platform to control Sonoff switches running the latest Itead firmware, locally (LAN mode).
MIT License
74 stars 37 forks source link

Add availability property & default icon #65

Closed mattsaxon closed 5 years ago

mattsaxon commented 5 years ago

Note, this change requires later version of pysonofflan (not committed at this time).

It also removes the now redundant call to update which is now invoked via a callback from pysonofflan. This means that switching only occurs once the switch has responded.

beveradb commented 5 years ago

LGTM, happy to merge once the current work on pysonofflan is complete and we've released a new version to pypi etc.

mattsaxon commented 5 years ago

Now you've updated the PySonoffLan component, I've updated the requirement line in switch.py and I think this is ready to merge.