-
Notifications
You must be signed in to change notification settings - Fork 36
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(E3): 燃气热水器启用半度后无法设置 x.5 度 #517
Comments
Title: The gas water heater cannot set x.5 degrees after half a degree is enabled |
看了一下,应该是数据类型转换的问题,代码里面使用了int类型,也就是你输入了39.5,应该是float类型,不过直接给你转换成int了,再次变成39了。
你可以直接参考debug文档,自行修改这一行: temperature = int(kwargs[ATTR_TEMPERATURE]) 改为: temperature = float(kwargs[ATTR_TEMPERATURE]) 修改以后重启HA,再次测试,反馈一下测试结果是否ok,midealocal原则上也涉及一些数据类型的修改,不过python应该可以跑起来按理不会报错,如果有错误,你再次提供一下debug log即可。 |
已经按您说的方法解决。 |
OK,感谢反馈测试结果。 |
OK, thanks for the feedback test results. |
HA版本
2025.2.5
集成版本
0.6.6
之前可正常使用的集成版本
0.6.6
设备类型及型号
Gas Water Heater 51100HX2 (74)
使用的App
美的美居
问题/Bug详细描述
问题描述:
使用自定义设置解决温度显示为2倍后,无法设置为 x.5 度,例如只能设置为39度,无法设置为39.5度(用户即使设置39.5,hass 也会将其改为39度)。
使用的自定义设置:
日志分析:
当时产生的action关键日志如下:
实际的日志应当为:
The logs
debug.log
The text was updated successfully, but these errors were encountered: