Skip to content

Commit

Permalink
- Reformatted tr.json file to use 2 spaces as default indentation.
Browse files Browse the repository at this point in the history
- Reverted `curr_pos` usage in `cover.py` back to `_current_cover_position` as per feedback for boolean cover testing.
  • Loading branch information
omerfaruk-aran committed Jan 18, 2025
1 parent 8079664 commit 8e205fd
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 261 deletions.
2 changes: 1 addition & 1 deletion custom_components/localtuya/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def supported_features(self):
def _current_state(self) -> str:
"""Return the current state of the cover."""
state = self._current_state_action
curr_pos = self.current_cover_position
curr_pos = self._current_cover_position
# Reset STATE when cover is fully closed or fully opened.
if state == STATE_STOPPED or (
state in (STATE_CLOSING, STATE_OPENING) and curr_pos in (0, 100)
Expand Down
Loading

0 comments on commit 8e205fd

Please sign in to comment.