Depreciation: lovelace_data['resources'] instead of lovelace_data.resources
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
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.
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
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
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
I have changed line 129 as follows.
resources: ResourceStorageCollection = hass.data["lovelace"].resources
I no longer get a warning and everything still works.
I have changed line 129 as follows.
resources: ResourceStorageCollection = hass.data["lovelace"].resourcesI 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.
I have changed line 129 as follows.
resources: ResourceStorageCollection = hass.data["lovelace"].resourcesI no longer get a warning and everything still works.
Thanks - did you open a PR?