Skip to content

Commit

Permalink
🔧 fix for cover_position_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Feb 8, 2025
1 parent 528fcf2 commit 7abaff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def on_init(self):
self._attr_supported_features |= CoverEntityFeature.CLOSE
if prop.list_first('Stop', 'Pause') != None:
self._attr_supported_features |= CoverEntityFeature.STOP
elif prop.value_range and prop.in_list(['current_position']):
elif prop.in_list(['current_position']):
if prop.value_range:
self._conv_current_position = conv
self._current_range = (prop.range_min(), prop.range_max())
Expand Down

0 comments on commit 7abaff7

Please sign in to comment.