Skip to content

fix asdict import - #3847

Merged
LKuemmel merged 8 commits into
openWB:feature_chargemode_enumsfrom
LKuemmel:chargemode_enums
Aug 24, 2026
Merged

fix asdict import#3847
LKuemmel merged 8 commits into
openWB:feature_chargemode_enumsfrom
LKuemmel:chargemode_enums

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Standardizes dataclass serialization on the public dataclass_utils.asdict API across configuration, device, and control code.

Changes:

  • Replaces standard-library and private serializer imports.
  • Adds recursive serializer type annotations.
  • Adds charge-point setup exception logging.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/modules/io_devices/eebus/api.py Uses the public serializer import.
packages/modules/devices/avm/avm/device.py Uses the public serializer import.
packages/modules/backup_clouds/nextcloud/backup_cloud.py Uses the public serializer import.
packages/helpermodules/update_config.py Consolidates configuration serialization imports and calls.
packages/helpermodules/setdata.py Uses the custom serializer for charge-point configuration.
packages/helpermodules/command.py Consolidates serialization and adds exception logging.
packages/helpermodules/changed_values_handler.py Uses the public serializer import.
packages/helpermodules/changed_values_handler_test.py Aligns tests with the custom serializer.
packages/dataclass_utils/_dataclass_asdict.py Adds recursive result typing.
packages/control/ev/charge_template.py Uses the custom serializer.
packages/control/chargepoint/chargepoint.py Introduces the custom serializer import.
packages/control/chargepoint/chargepoint_template.py Uses the custom serializer.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

from control.chargepoint.chargepoint_state import CHARGING_STATES, ChargepointState
from control.limiting_value import loadmanagement_limit_factory
from control.text import BidiState
from dataclass_utils import asdict
Comment thread packages/helpermodules/command.py Outdated
# Publish hierarchy to ensure the new component is recognized in the system before hierarchy check is failed
Pub().pub("openWB/set/counter/get/hierarchy", SubData.counter_all_data.data.get.hierarchy)
except (TypeError, IndexError):
log.exception("fehler beim Ladepunkt hinzufügen.")
@LKuemmel
LKuemmel marked this pull request as ready for review August 24, 2026 11:49
@LKuemmel
LKuemmel force-pushed the feature_chargemode_enums branch from 3e1e495 to bd6815f Compare August 24, 2026 11:50
@LKuemmel
LKuemmel merged commit 6960123 into openWB:feature_chargemode_enums Aug 24, 2026
1 check passed
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.

2 participants