dan-r / HomeAssistant-Ohme

Unofficial Home Assistant integration for interacting with Ohme EV chargers (EVSE) 🚗⚡️
MIT License
35 stars 10 forks source link

Upgrade to HA Core 2024.7.0 gives "Detected code that calls async_forward_entry_setup for integration ohme with title" #82

Open gb095666 opened 3 days ago

gb095666 commented 3 days ago

What happened? Upgraded HA core from 2024.6.4, after reboot got the early warning error message in the system log

To Reproduce Upgrade to HA Core 2024.7.0

Expected behavior Message is an early warning that as of 2025.1 the function will not be acceptable

Log Output Logger: homeassistant.helpers.frame Source: helpers/frame.py:151 First occurred: 21:34:40 (6 occurrences) Last logged: 21:34:42

Detected code that calls async_forward_entry_setup for integration ohme with title: Ohme Charger and entry_id: 2a816906d41f774edfeae2d72bc9dc06, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

Home Assistant Version Find this in Settings > About.

Integration Version Core - 2024.7.0 Supervisor - 2024.06.2 Operating System - 12.4 Frontend - 20240703.0

Additional context Early warning only, the integration is still working.

dan-r commented 3 days ago

Would you mind testing this beta please? Should be fixed.

https://github.com/dan-r/HomeAssistant-Ohme/releases/tag/v0.8.4-beta.1

gb095666 commented 3 days ago

Yes, that looks to have fixed it, the error message no longer appears, thanks for the swift response,