fix: add translations to washing machine. Fix #63.

This commit is contained in:
sususweet
2025-12-02 23:17:23 +08:00
parent 7080958674
commit 1f0662154a
2 changed files with 244 additions and 7 deletions

View File

@@ -56,6 +56,13 @@ class MideaSelectEntity(MideaEntity, SelectEntity):
@property
def options(self):
"""Return a list of available options.
Note: To translate options, add translations in the translation file under:
entity.select.{translation_key}.state.{option_key}
Home Assistant will automatically use these translations when displaying options.
"""
return list(self._key_options.keys())
@property