add reconnect retry and longer timeouts for verisure (#1944)

This commit is contained in:
Per Sandström authored and Paulus Schoutsen committed 2016-05-03 18:53:11 -07:00
1 parent 4643dcde9c
commit 4850a65ed0
5 files changed
+44 -11

No files matched your search

@@ -42,6 +42,11 @@ class VerisureSmartplug(SwitchDevice):
"""Return true if on."""
return hub.smartplug_status[self._id].status == 'on'
@property
def available(self):
"""Return True if entity is available."""
return hub.available
def turn_on(self):
"""Set smartplug status on."""
hub.my_pages.smartplug.set(self._id, 'on')