RogerSelwyn / O365-HomeAssistant

Office 365 integration for Home Assistant
MIT License
205 stars 15 forks source link

HA 2025.11 warning... #262

Open Corvus71 opened 1 week ago

Corvus71 commented 1 week ago

2024-11-11 13:06:53.071 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'o365' uses async_config_entry_first_refresh, which is only supported for coordinators with a config entry and will stop working in Home Assistant 2025.11 at custom_components/o365/helpers/setup.py, line 87: await sensor_coordinator.async_config_entry_first_refresh(), please create a bug report at https://github.com/RogerSelwyn/O365-HomeAssistant/issues

Is this something to worry about?

RogerSelwyn commented 1 week ago

It does say it is only a warning and it will stop working in a years time.

I will make the required change in due course.

Thanks for reporting

RogerSelwyn commented 20 hours ago

It is possible that this warning will not be possible to remove, it seems that HA core is moving towards all integrations (certainly those that use co-ordinators) having a config entry. Because o365 is setup from yaml, it doesn't have a config entry.

I'm not sure this may not be solvable without removing the co-ordinators. Given that I have written replacement integrations, which don't have this problem, a wholesale migration to those may be required (in particular when they finally make it onto HACS default).