Skip to content

Depreciation: lovelace_data['resources'] instead of lovelace_data.resources #797

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

Open
Happy-Cadaver opened this issue Jan 29, 2025 · 6 comments · May be fixed by #799
Open

Depreciation: lovelace_data['resources'] instead of lovelace_data.resources #797

Happy-Cadaver opened this issue Jan 29, 2025 · 6 comments · May be fixed by #799
Assignees
Labels
enhancement New feature or request

Comments

@Happy-Cadaver
Copy link

Got this warning in my logs, thought you should know.

Detected that custom integration 'webrtc' accessed lovelace_data['resources'] instead of lovelace_data.resources at custom_components/webrtc/utils.py, line 129: resources: ResourceStorageCollection = hass.data["lovelace"]["resources"]. This will stop working in Home Assistant 2026.2, please create a bug report at https://github.com/AlexxIT/WebRTC/issues
@AlexxIT AlexxIT added the enhancement New feature or request label Jan 30, 2025
@AlexxIT AlexxIT self-assigned this Jan 30, 2025
@TheTakylo TheTakylo linked a pull request Feb 4, 2025 that will close this issue
@AlexxIT AlexxIT marked this as a duplicate of #800 Feb 6, 2025
@AlexxIT AlexxIT marked this as a duplicate of #801 Feb 10, 2025
@AlexxIT AlexxIT marked this as a duplicate of #806 Feb 18, 2025
@AlexxIT AlexxIT marked this as a duplicate of #808 Feb 21, 2025
@AlexxIT AlexxIT marked this as a duplicate of #809 Feb 24, 2025
@AlexxIT AlexxIT changed the title Depreciation in HA 2025.2.0b0 Depreciation: lovelace_data['resources'] instead of lovelace_data.resources Feb 24, 2025
@PeteDenmark
Copy link

I also get this error still. Would hate to have to switch to the legacy WebRTC, since i really enjoy the ability to control which stream protocol to use.

@CH-1967
Copy link

CH-1967 commented Mar 24, 2025

I also get this message.
It would be nice if this could be fixed.

Detected that custom integration 'webrtc' accessed lovelace_data['resources'] instead of lovelace_data.resources at custom_components/webrtc/utils.py, line 129: resources: ResourceStorageCollection = hass.data["lovelace"]["resources"]. This will stop working in Home Assistant 2026.2, please create a bug report at https://github.com/AlexxIT/WebRTC/issues

@Morpheus2018
Copy link

I also get this message.

Detected that custom integration 'webrtc' accessed lovelace_data['resources'] instead of lovelace_data.resources at custom_components/webrtc/utils.py, line 129: resources: ResourceStorageCollection = hass.data["lovelace"]["resources"]. This will stop working in Home Assistant 2026.2, please create a bug report at https://github.com/AlexxIT/WebRTC/issues

@AlexxIT AlexxIT marked this as a duplicate of #821 Apr 4, 2025
@correiorafapc
Copy link

Dear All,

I am having the same warning:

Detected that custom integration 'webrtc' accessed lovelace_data['resources'] instead of lovelace_data.resources at custom_components/webrtc/utils.py, line 129: resources: ResourceStorageCollection = hass.data["lovelace"]["resources"]. This will stop working in Home Assistant 2026.2, please create a bug report at https://github.com/AlexxIT/WebRTC/issues

Do you have any solution for that?

Br.

Rafael

@CH-1967
Copy link

CH-1967 commented Apr 11, 2025

I have changed line 129 as follows.
resources: ResourceStorageCollection = hass.data["lovelace"].resources
I no longer get a warning and everything still works.

@correiorafapc
Copy link

I have changed line 129 as follows. resources: ResourceStorageCollection = hass.data["lovelace"].resources I no longer get a warning and everything still works.

Dear CH-1967,

I made the change and it works. Thanks a lot for that.

Br.

@AlexxIT AlexxIT marked this as a duplicate of #827 Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants