Skip to content

56 bug verzoegerung bei bedienung der wallbox via integration#57

Merged
derolli1976 merged 4 commits into
mainfrom
56-bug-verzögerung-bei-bedienung-der-wallbox-via-integration
Sep 9, 2025

Hidden character warning

The head ref may contain hidden characters: "56-bug-verz\u00f6gerung-bei-bedienung-der-wallbox-via-integration"
Merged

56 bug verzoegerung bei bedienung der wallbox via integration#57
derolli1976 merged 4 commits into
mainfrom
56-bug-verzögerung-bei-bedienung-der-wallbox-via-integration

Conversation

@derolli1976
Copy link
Copy Markdown
Owner

Add short delay before updating Wallbox sensors after API calls

Description

Added an asyncio.sleep() delay before triggering a homeassistant.update_entity call to ensure that the Wallbox has enough time to apply the new state before Home Assistant refreshes the sensor values.

The delay was introduced in:

  • button.py
  • select.py

A similar delay was already present in switch.py.

Motivation and Context

Without a short delay, Home Assistant sometimes refreshed the Wallbox sensor state too early, leading to inconsistent or outdated values in the UI.
This change ensures more reliable and consistent state updates after Wallbox API calls.

How Has This Been Tested?

  • Tested locally with an Enpal Wallbox setup.
  • Triggered changes via button, select, and switch entities.
  • Verified that the sensor values update correctly after the delay and reflect the actual Wallbox state.
  • No regressions observed in normal operation.

Screenshots (if appropriate):

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@derolli1976 derolli1976 linked an issue Sep 9, 2025 that may be closed by this pull request
@derolli1976 derolli1976 changed the title 56 bug verzögerung bei bedienung der wallbox via integration 56 bug verzoegerung bei bedienung der wallbox via integration Sep 9, 2025
@derolli1976 derolli1976 merged commit 66dcd70 into main Sep 9, 2025
11 checks 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.

[Bug] Verzögerung bei Bedienung der Wallbox via Integration

1 participant