Skip to content

Commit

Permalink
Fix humidifer available_modes (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou authored Nov 8, 2023
1 parent 7111d73 commit 02c5a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/localtuya/humidifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def async_set_humidity(self, humidity: int) -> None:
def available_modes(self):
"""Return the list of presets that this device supports."""
if modes := self._config.get(self._available_modes, None):
modes = [v.lstrip() for v in modes.strip(",")]
modes = [v.lstrip() for v in modes.split(",")]

return modes

Expand Down

0 comments on commit 02c5a0e

Please sign in to comment.