Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration will stop working #1483

Open
arh-au opened this issue Jan 11, 2025 · 3 comments

Comments

@arh-au
Copy link

arh-au commented Jan 11, 2025

Describe the bug
Warning appearing in Home Assistant logs during startup:

WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ocpp' calls device_registry.async_get_or_create referencing a non existing via_device ('ocpp', '01JETVDSDMS8Q5CGSNK763N169'), with device info: {'identifiers': {('ocpp', 'charger')}, 'via_device': ('ocpp', '01JETVDSDMS8Q5CGSNK763N169')} at custom_components/ocpp/button.py, line 57: async_add_devices(entities, False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/lbbrhzn/ocpp/issues

To Reproduce
Steps to reproduce the behavior:

  1. Upgraded to HA 2025.1.2

Expected behavior
No warning to appear

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • RPI 3b+
  • occp v0.7.0
  • Core 2025.1.2
  • Supervisor 2024.12.3
  • Operating System 14.1
  • Frontend 20250109.0
@caitotheonlypotato
Copy link

caitotheonlypotato commented Jan 20, 2025

same for mine, I've upgraded to the latest OCPP, core, supervisor, OS, frontend etc.

My log
[homeassistant.helpers.frame] Detected that custom integration 'ocpp' calls device_registry.async_get_or_create referencing a non existing via_device ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7'), with device info: {'identifiers': {('ocpp', 'charger')}, 'via_device': ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7')} at custom_components/ocpp/sensor.py, line 77: async_add_devices(entities, False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/lbbrhzn/ocpp/issues
2025-01-20 01:37:10.865 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ocpp' calls device_registry.async_get_or_create referencing a non existing via_device ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7'), with device info: {'identifiers': {('ocpp', 'charger')}, 'via_device': ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7')} at custom_components/ocpp/switch.py, line 75: async_add_devices(entities, False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/lbbrhzn/ocpp/issues
2025-01-20 01:37:10.886 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ocpp' calls device_registry.async_get_or_create referencing a non existing via_device ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7'), with device info: {'identifiers': {('ocpp', 'charger')}, 'via_device': ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7')} at custom_components/ocpp/number.py, line 69: async_add_devices(entities, False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/lbbrhzn/ocpp/issues
2025-01-20 01:37:10.909 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'ocpp' calls device_registry.async_get_or_create referencing a non existing via_device ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7'), with device info: {'identifiers': {('ocpp', 'charger')}, 'via_device': ('ocpp', '01JHYKBJC1XBGJDBQRZTVXY5Q7')} at custom_components/ocpp/button.py, line 57: async_add_devices(entities, False). This will stop working in Home Assistant 2025.12.0, please create a bug report at https://github.com/lbbrhzn/ocpp/issues

I can still see sensor readings, and I can control - charger control, availability, reset and unlock, but max current entity although available can't be changed and generates error notifications

@jayzee225
Copy link

Same issue for me after updating to Core 2025.x
I went to HACS / OCPP / Download again and after an install and reboot of HA it worked again.
Hope this will help.

@caitotheonlypotato
Copy link

Same issue for me after updating to Core 2025.x I went to HACS / OCPP / Download again and after an install and reboot of HA it worked again. Hope this will help.

Sadly for my installation, this did not work. I've reinstalled several times also. I can see all the sensors and switches as per normal, but the charge rate can't be adjusted

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

No branches or pull requests

3 participants