Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug(AC): Missing Chinese translation about air conditioner wind speed #483

Open
NyaDoo opened this issue Jan 30, 2025 · 1 comment
Open
Labels
bug Something isn't working

Comments

@NyaDoo
Copy link

NyaDoo commented Jan 30, 2025

HA版本

No response

集成版本

0.6.6

之前可正常使用的集成版本

0.6.6

设备类型及型号

Air Conditioner 22040023 (44204)

使用的App

美的美居

问题/Bug详细描述

The Low, Medium, High and Auto of the air conditioner wind speed gear can be translated into Chinese normally, but silent and full are still in English.
Image

The logs

  1. 必须先开启Debug Log(参考首页README说明)
  2. 执行产生错误的操作(请务必在问题详细描述中说明)
  3. 将完整的Debug log文件以附件上传。
  4. 请勿直接粘贴log中的部分内容!以附件上传。
  5. 请勿直接粘贴log中的部分内容!以附件上传。
  6. 请勿直接粘贴log中的部分内容!以附件上传。
    ...
@NyaDoo NyaDoo added the bug Something isn't working label Jan 30, 2025
@wuwentao wuwentao changed the title Missing Chinese translation about air conditioner wind speed Bug(AC): Missing Chinese translation about air conditioner wind speed Feb 5, 2025
@wuwentao
Copy link
Owner

wuwentao commented Feb 5, 2025

看了一下,支持自动翻译的部分是使用HA官方自带的几个str选项:

from homeassistant.components.climate import (

不支持的几个不在官方的constant列表里面,导致不能自动翻译
https://github.com/home-assistant/core/blob/280f61dd77edda72b16fab757178abe15f9cc8da/homeassistant/components/climate/__init__.py#L65

# Possible fan state

最佳的解决办法可能是直接提交进HA core里面,而不是当前integration里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants