Skip to content

Conversation

@LKuemmel
Copy link
Contributor

@LKuemmel LKuemmel commented Nov 4, 2025

No description provided.

@LKuemmel LKuemmel merged commit 9cd5045 into openWB:master Nov 4, 2025
1 check passed
Comment on lines 2607 to +2613
def upgrade(topic: str, payload) -> Optional[dict]:
if "openWB/general/chargemode_config/retry_failed_phase_switches" == topic:
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches": payload}
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches":
decode_payload(payload)}
if "openWB/general/chargemode_config/phase_switch_delay" == topic:
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay": payload}
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay":
decode_payload(payload)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Ist sicher gestellt, dass nur diese 2 Topics übergeben werden?

Suggested change
def upgrade(topic: str, payload) -> Optional[dict]:
if "openWB/general/chargemode_config/retry_failed_phase_switches" == topic:
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches": payload}
return {"openWB/general/chargemode_config/pv_charging/retry_failed_phase_switches":
decode_payload(payload)}
if "openWB/general/chargemode_config/phase_switch_delay" == topic:
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay": payload}
return {"openWB/general/chargemode_config/pv_charging/phase_switch_delay":
decode_payload(payload)}
def upgrade(topic: str, payload) -> Optional[dict]:
return {f"openWB/general/chargemode_config/pv_charging/{topic.rsplit("/", maxsplit=1)[-1]}":
decode_payload(payload)}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Es sollen ausschließlich diese 2 Topics verschoben werden.

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