Skip to content

Commit

Permalink
open and close cover fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slajob committed Mar 1, 2024
1 parent b105649 commit abc2c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/dirigera_platform/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ def is_opening(self):
return False

def open_cover(self, **kwargs):
self._json_data.set_target_position(0)
self._json_data.set_target_level(0)

def close_cover(self, **kwargs):
self._json_data.set_target_position(100)
self._json_data.set_target_level(100)

def set_cover_position(self, **kwargs):
position = int(kwargs['position'])
Expand Down

0 comments on commit abc2c90

Please sign in to comment.