Skip to content

improve messages#3342

Draft
LKuemmel wants to merge 3 commits intoopenWB:masterfrom
LKuemmel:help
Draft

improve messages#3342
LKuemmel wants to merge 3 commits intoopenWB:masterfrom
LKuemmel:help

Conversation

@LKuemmel
Copy link
Copy Markdown
Contributor

@LKuemmel LKuemmel commented May 4, 2026

No description provided.

@LKuemmel LKuemmel added this to the 2.2.0-Patch.1 milestone May 4, 2026
@benderl benderl marked this pull request as ready for review May 6, 2026 06:34
@benderl benderl requested a review from Copilot May 6, 2026 06:38
@benderl benderl marked this pull request as draft May 6, 2026 06:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates user- and log-facing German error messages around hardware checks and error handling to be shorter/simplified, and adjusts tests accordingly.

Changes:

  • Shortened/rewrote hardware-check error message constants and removed the appended “Support kontaktieren” hint from raised exceptions/warnings.
  • Updated hardware check tests to match the new exception messages.
  • Simplified ErrorTimerContext logging by removing the long internal hint and logging only the exception message.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/modules/common/hardware_check.py Rewrites hardware-check message constants and changes raised exception/warning texts to no longer append the support hint.
packages/modules/common/hardware_check_test.py Updates expected exception messages to match the new strings.
packages/helpermodules/utils/error_handling.py Removes the internal hint text and changes error logging behavior in ErrorTimerContext.__exit__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

USB_ADAPTER_BROKEN = RS485_ADAPTER_BROKEN.format('USB-Adapters')
LAN_ADAPTER_BROKEN = RS485_ADAPTER_BROKEN.format('LAN-Konverters')
METER_PROBLEM = "Erneutes Auslesen des Zählers"
METER_BROKEN_VOLTAGES = "Erneutes Auslesen der Spannungen am Zähler"
return False
else:
log.error(f"{exception}\n{INTERNAL_ERROR_HINT}")
log.error(exception)
id="EVSE defekt"),
pytest.param(Exception("Modbus"), None, [230, 0, 230], None, False, ModbusSerialClient_,
EVSE_BROKEN + " " + METER_BROKEN_VOLTAGES.format([230, 0, 230]) + OPEN_TICKET,
EVSE_BROKEN + " " + METER_BROKEN_VOLTAGES.format([230, 0, 230]),
raise Exception(USB_ADAPTER_BROKEN)
else:
raise Exception(meter_error_msg + OPEN_TICKET)
raise Exception(meter_error_msg)
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.

3 participants