From 634e1dd9eb7855a4adcdaaff99769c83473a5e8b Mon Sep 17 00:00:00 2001 From: Indu Prakash <6459774+iprak@users.noreply.github.com> Date: Sun, 2 Feb 2025 02:11:40 -0600 Subject: [PATCH] fix: sort available modes (#137134) --- homeassistant/components/vesync/humidifier.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/vesync/humidifier.py b/homeassistant/components/vesync/humidifier.py index 86e0d6b5d87..40ea015f4d8 100644 --- a/homeassistant/components/vesync/humidifier.py +++ b/homeassistant/components/vesync/humidifier.py @@ -121,6 +121,8 @@ class VeSyncHumidifierHA(VeSyncBaseEntity, HumidifierEntity): self._available_modes.append(ha_mode) self._ha_to_vs_mode_map[ha_mode] = vs_mode + self._available_modes.sort() + def _get_vs_mode(self, ha_mode: str) -> str | None: return self._ha_to_vs_mode_map.get(ha_mode)