mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
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
@ -47,6 +47,7 @@ class VeraCover(VeraDevice, CoverDevice):
|
|||||||
def set_cover_position(self, position, **kwargs):
|
def set_cover_position(self, position, **kwargs):
|
||||||
"""Move the cover to a specific position."""
|
"""Move the cover to a specific position."""
|
||||||
self.vera_device.set_level(position)
|
self.vera_device.set_level(position)
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_closed(self):
|
def is_closed(self):
|
||||||
@ -60,11 +61,14 @@ class VeraCover(VeraDevice, CoverDevice):
|
|||||||
def open_cover(self, **kwargs):
|
def open_cover(self, **kwargs):
|
||||||
"""Open the cover."""
|
"""Open the cover."""
|
||||||
self.vera_device.open()
|
self.vera_device.open()
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def close_cover(self, **kwargs):
|
def close_cover(self, **kwargs):
|
||||||
"""Close the cover."""
|
"""Close the cover."""
|
||||||
self.vera_device.close()
|
self.vera_device.close()
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
def stop_cover(self, **kwargs):
|
def stop_cover(self, **kwargs):
|
||||||
"""Stop the cover."""
|
"""Stop the cover."""
|
||||||
self.vera_device.stop()
|
self.vera_device.stop()
|
||||||
|
self.schedule_update_ha_state()
|
||||||
|
@ -20,7 +20,7 @@ from homeassistant.const import (
|
|||||||
EVENT_HOMEASSISTANT_STOP)
|
EVENT_HOMEASSISTANT_STOP)
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
REQUIREMENTS = ['pyvera==0.2.24']
|
REQUIREMENTS = ['pyvera==0.2.25']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -648,7 +648,7 @@ pyunifi==2.0
|
|||||||
# pyuserinput==0.1.11
|
# pyuserinput==0.1.11
|
||||||
|
|
||||||
# homeassistant.components.vera
|
# homeassistant.components.vera
|
||||||
pyvera==0.2.24
|
pyvera==0.2.25
|
||||||
|
|
||||||
# homeassistant.components.notify.html5
|
# homeassistant.components.notify.html5
|
||||||
pywebpush==0.6.1
|
pywebpush==0.6.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user