`can_change_charging_phases` missing

未关闭 适合新手
#466 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
api, backend

调研方向

首先阅读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
Image
主要语言
Python
星标
12
派生
10
PR 合并指标
30 天内没有已合并 PR

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

frenck/python-peblar 的其他 Issue

查看 frenck/python-peblar 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。