fix: sort available modes (#137134)

pull/137168/head
Indu Prakash 2025-02-02 02:11:40 -06:00 committed by GitHub
parent 9fcaf32c9c
commit 634e1dd9eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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)