Skip to content

Commit

Permalink
Merge pull request #19 from Hypfer/patch-1
Browse files Browse the repository at this point in the history
@Hypfer this seems to be the pragmatic solution, merging!
  • Loading branch information
gluap authored Apr 24, 2022
2 parents 2a5f129 + 3d44556 commit 4fc39e6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion custom_components/duofern/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
# found advice in the homeassistant creating components manual
# https://home-assistant.io/developers/creating_components/
# Import the device class from the component that you want to support
from homeassistant.components.cover import ATTR_POSITION, CoverEntity
from homeassistant.components.cover import (
ATTR_POSITION,
CoverEntity,
SUPPORT_OPEN,
SUPPORT_CLOSE,
SUPPORT_SET_POSITION,
SUPPORT_STOP
)

from .const import DOMAIN

Expand Down Expand Up @@ -61,6 +68,10 @@ def should_poll(self):
@property
def unique_id(self):
return self._id

@property
def supported_features(self):
return SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION | SUPPORT_STOP

def open_cover(self):
"""roll up cover"""
Expand Down

0 comments on commit 4fc39e6

Please sign in to comment.