Skip to content

Commit 8e205fd

Browse files
- Reformatted tr.json file to use 2 spaces as default indentation.
- Reverted `curr_pos` usage in `cover.py` back to `_current_cover_position` as per feedback for boolean cover testing.
1 parent 8079664 commit 8e205fd

File tree

2 files changed

+261
-261
lines changed

2 files changed

+261
-261
lines changed

custom_components/localtuya/cover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def supported_features(self):
120120
def _current_state(self) -> str:
121121
"""Return the current state of the cover."""
122122
state = self._current_state_action
123-
curr_pos = self.current_cover_position
123+
curr_pos = self._current_cover_position
124124
# Reset STATE when cover is fully closed or fully opened.
125125
if state == STATE_STOPPED or (
126126
state in (STATE_CLOSING, STATE_OPENING) and curr_pos in (0, 100)

0 commit comments

Comments
 (0)