`can_change_charging_phases` missing
还没有人认领这个 Issue。
评估
调研方向
首先阅读PeblarSystemInformation模型,以及peblar.py中的traceback所指出的system_information解析路径。响应缺少can_change_charging_phases;将模型与充电器的系统信息负载及现有解析测试进行比较。完成标准是该负载不再引发MissingField,并且相应行为有测试覆盖。
由索引模型根据 Issue 内容生成。
描述
Description
I have a Coolblue Bluebuilt (Peblar whitelabel) and connecting to it via the Home Assistant integration gives the following (2026.10.2):
Issue raised here because the issue comes from this lib.
2026-10-19 12:41:11.580 ERROR (MainThread) [homeassistant.components.peblar] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/peblar/config_flow.py", line 46, in async_step_user
info = await peblar.system_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/peblar/peblar.py", line 523, in system_information
return PeblarSystemInformation.from_json(result)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<string>", line 30, in __mashumaro_from_json__
mashumaro.exceptions.MissingField: Field "can_change_charging_phases" of type bool is missing in PeblarSystemInformation instance
2026-10-19 12:41:21.298 ERROR (MainThread) [homeassistant.components.peblar] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/peblar/config_flow.py", line 46, in async_step_user
info = await peblar.system_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/peblar/peblar.py", line 523, in system_information
return PeblarSystemInformation.from_json(result)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<string>", line 30, in __mashumaro_from_json__
mashumaro.exceptions.MissingField: Field "can_change_charging_phases" of type bool is missing in PeblarSystemInformation instance
2026-10-19 12:42:23.381 ERROR (MainThread) [homeassistant.components.peblar] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/peblar/config_flow.py", line 46, in async_step_user
info = await peblar.system_information()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/peblar/peblar.py", line 523, in system_information
return PeblarSystemInformation.from_json(result)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
File "<string>", line 30, in __mashumaro_from_json__
mashumaro.exceptions.MissingField: Field "can_change_charging_phases" of type bool is missing in PeblarSystemInformation instance
Version
2.1.0
Additional information
- 主要语言
- Python
- 星标
- 12
- 派生
- 10
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
frenck/python-peblar 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
frenck/python-peblar#473 ·
-
no-stale
难度 4/5 3-5 天 新手友好度 20/100
frenck/python-peblar#4 ·
查看 frenck/python-peblar 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复