Skip to content

Commit

Permalink
fix: object of type 'property' has no len()
Browse files Browse the repository at this point in the history
  • Loading branch information
IATkachenko committed Jan 6, 2024
1 parent 8a75308 commit 67c4f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/ha_tion_btle/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TionFan(FanEntity, CoordinatorEntity):
_attr_supported_features = FanEntityFeature.PRESET_MODE | FanEntityFeature.SET_SPEED
_attr_oscillating = False
_attr_preset_modes = [PRESET_NONE, PRESET_BOOST]
_attr_speed_count = len(TionClimateEntity.attr_fan_modes())
_attr_speed_count = 6 # Must be synced with TionClimateEntity._attr_fan_modes
_attr_current_direction = DIRECTION_FORWARD
_mode_percent_mapping = {
0: 0,
Expand Down

0 comments on commit 67c4f35

Please sign in to comment.