Skip to content

Commit

Permalink
Fix issue with rate select entities always been added due to misuse o…
Browse files Browse the repository at this point in the history
…f "is not" (#237)
  • Loading branch information
mill1000 authored Sep 10, 2024
1 parent cea3a74 commit 0487235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_setup_entry(
AC.SwingAngle,
"horizontal_swing_angle"))

if (supported_rates := coordinator.device.supported_rate_selects) is not [AC.RateSelect.OFF]:
if (supported_rates := coordinator.device.supported_rate_selects) != [AC.RateSelect.OFF]:
entities.append(MideaEnumSelect(coordinator,
"rate_select",
AC.RateSelect,
Expand Down

0 comments on commit 0487235

Please sign in to comment.