Skip to content

Conversation

@mclare
Copy link

@mclare mclare commented Jul 20, 2025

I updated the init to match the current instructions/examples, replacing async_forward_entry_setup async_forward_entry_setups - power to the plural https://developers.home-assistant.io/blog/2024/06/12/async_forward_entry_setups/

camera.py's async_camera_image now passes empty width, height and byte size https://developers.home-assistant.io/docs/core/entity/camera/#methods to match parameter count. I also added some logging to figure this out, which I left in.

Tested with 2025.7.1

Thanks for your work creating this!

mclare added 2 commits July 11, 2025 08:55
According to the latest Home Assistant documentation, we should be using async_forward_entry_setups (plural) instead of async_forward_entry_setup (singular). The documentation specifically states:

"Instead, await hass.config_entries.async_forward_entry_setups as it can load multiple platforms at once and is more efficient since it does not require a separate import executor job for each platform."

We're now calling async_forward_entry_setups once with the entire list of components (KUNA_COMPONENTS) instead of in a loop
Fixed error caused by the stream monitoring's trying to pass width and height parameters to the async_camera_image()  method, but it looks like HA no longer accept these parameters.
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.

1 participant