Skip to content

Commit

Permalink
Merge pull request #34 from iMicknl/fix_30
Browse files Browse the repository at this point in the history
Fix faulty if statement
  • Loading branch information
iMicknl authored Jun 7, 2020
2 parents 3ad8a32 + 5715cf3 commit 5be75d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/tahoma/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,9 @@ def update(self):

# Set position for horizontal covers
if CORE_DEPLOYMENT_STATE in self.tahoma_device.active_states:
self._closure = self.tahoma_device.active_states.get(
self._position = self.tahoma_device.active_states.get(
CORE_DEPLOYMENT_STATE)

self._position = 100 - self.tahoma_device.active_states.get(
CORE_CLOSURE_STATE)

# TODO Check if this offset is really necessary
if self._position <= 5:
self._position = 0
Expand Down

0 comments on commit 5be75d0

Please sign in to comment.