Skip to content

fix: 燃气热水器温度范围转为数字,修复实体注册失败 - #283

Open
linshiyonghu12138 wants to merge 1 commit into
banto6:masterfrom
linshiyonghu12138:fix/water-heater-temp-type
Open

fix: 燃气热水器温度范围转为数字,修复实体注册失败#283
linshiyonghu12138 wants to merge 1 commit into
banto6:masterfrom
linshiyonghu12138:fix/water-heater-temp-type

Conversation

@linshiyonghu12138

@linshiyonghu12138 linshiyonghu12138 commented Aug 13, 2026

Copy link
Copy Markdown

Fixes #282
接口返回的 dataStep 中 minValue/maxValue/step 均为字符串,经entity.py 的 setattr 直接赋给 _attr_min_temp 等属性后,HA 的display_temp() 因非数字类型抛出 TypeError,导致 water_heater实体注册失败、状态变为 unavailable。

接口返回的 dataStep 中 minValue/maxValue/step 均为字符串,经
entity.py 的 setattr 直接赋给 _attr_min_temp 等属性后,HA 的
display_temp() 因非数字类型抛出 TypeError,导致 water_heater
实体注册失败、状态变为 unavailable。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

升级v1.3.0后,燃气热水器无法调节水温

1 participant