mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-12-17 09:55:51 +00:00
fix: add translations to washing machine. Fix #63.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user