Update vera cover refresh logic (#6897)
* Update cover update logic to fix compatibility bug. Bump vera library. * Tidy. * Add missed file.
This commit is contained in:
1 parent
4c7ec4932c
commit
5b9d9954c5
3 files changed
+6
-2
No files matched your search
@@ -47,6 +47,7 @@ class VeraCover(VeraDevice, CoverDevice):
|
||||
def set_cover_position(self, position, **kwargs):
|
||||
"""Move the cover to a specific position."""
|
||||
self.vera_device.set_level(position)
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
@property
|
||||
def is_closed(self):
|
||||
@@ -60,11 +61,14 @@ class VeraCover(VeraDevice, CoverDevice):
|
||||
def open_cover(self, **kwargs):
|
||||
"""Open the cover."""
|
||||
self.vera_device.open()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def close_cover(self, **kwargs):
|
||||
"""Close the cover."""
|
||||
self.vera_device.close()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def stop_cover(self, **kwargs):
|
||||
"""Stop the cover."""
|
||||
self.vera_device.stop()
|
||||
self.schedule_update_ha_state()
|
||||
@@ -20,7 +20,7 @@ from homeassistant.const import (
|
||||
EVENT_HOMEASSISTANT_STOP)
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
REQUIREMENTS = ['pyvera==0.2.24']
|
||||
REQUIREMENTS = ['pyvera==0.2.25']
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in new issue
Block a user