mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Fix ozw garage door methods (#37374)
This commit is contained in:
@@ -113,10 +113,10 @@ class ZwaveGarageDoorBarrier(ZWaveDeviceEntity, CoverEntity):
|
|||||||
"""Return the current position of Zwave garage door."""
|
"""Return the current position of Zwave garage door."""
|
||||||
return self.values.primary.value[VALUE_SELECTED_ID] == 0
|
return self.values.primary.value[VALUE_SELECTED_ID] == 0
|
||||||
|
|
||||||
def close_cover(self, **kwargs):
|
async def async_close_cover(self, **kwargs):
|
||||||
"""Close the garage door."""
|
"""Close the garage door."""
|
||||||
self.values.primary.send_value(0)
|
self.values.primary.send_value(0)
|
||||||
|
|
||||||
def open_cover(self, **kwargs):
|
async def async_open_cover(self, **kwargs):
|
||||||
"""Open the garage door."""
|
"""Open the garage door."""
|
||||||
self.values.primary.send_value(4)
|
self.values.primary.send_value(4)
|
||||||
|
Reference in New Issue
Block a user