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:
parent
4c7ec4932c
commit
5b9d9954c5
3 changed files with 6 additions and 2 deletions
|
@ -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__)
|
||||
|
||||
|
|
|
@ -648,7 +648,7 @@ pyunifi==2.0
|
|||
# pyuserinput==0.1.11
|
||||
|
||||
# homeassistant.components.vera
|
||||
pyvera==0.2.24
|
||||
pyvera==0.2.25
|
||||
|
||||
# homeassistant.components.notify.html5
|
||||
pywebpush==0.6.1
|
||||
|
|
Loading…
Add table
Reference in a new issue