`can_change_charging_phases` missing

Đang mở Phù hợp với người mới
#466 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu bằng cách đọc model PeblarSystemInformation và đường dẫn phân tích system_information được xác định bởi traceback trong peblar.py. Phản hồi đang thiếu can_change_charging_phases; hãy so sánh model với payload thông tin hệ thống của bộ sạc và các bài kiểm tra phân tích hiện có. Hoàn tất khi payload này không còn gây ra MissingField và hành vi được kiểm thử.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
12
Fork
10
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của frenck/python-peblar

Tất cả issue của frenck/python-peblar

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.