Fix ozw garage door methods (#37374)

This commit is contained in:
Martin Hjelmare 2020-07-03 02:23:45 +02:00 committed by GitHub
parent a6fb9e6100
commit 98bcf4f28d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,10 +113,10 @@ class ZwaveGarageDoorBarrier(ZWaveDeviceEntity, CoverEntity):
"""Return the current position of Zwave garage door."""
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."""
self.values.primary.send_value(0)
def open_cover(self, **kwargs):
async def async_open_cover(self, **kwargs):
"""Open the garage door."""
self.values.primary.send_value(4)