add reconnect retry and longer timeouts for verisure (#1944)
This commit is contained in:
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')
|
||||
|
||||
Reference in new issue
Block a user