mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix ozw garage door methods (#37374)
This commit is contained in:
parent
a6fb9e6100
commit
98bcf4f28d
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user