elad-bar / ha-blueiris

Integration with Blue Iris Video Security Software
184 stars 43 forks source link

Integration uses deprecated `async_get_registry` #170

Closed tankdeer closed 2 years ago

tankdeer commented 2 years ago

I am getting warnings in my log about using a deprecated method.

2022-06-01 13:15:10 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecated 'async_get_registry' to access entity registry, use async_get instead. Please report issue to the custom component author for blueiris using this method at custom_components/blueiris/managers/home_assistant.py, line 96: self._entity_registry = await er_async_get_registry(self._hass)

Hopefully this can get addressed despite not technically being maintained anymore.

kramttocs commented 2 years ago

Thanks. Confirmed the same (seeing it with a few of the integrations I am using). I'll get this looked at.

elad-bar commented 2 years ago

@kramttocs, I cloned the fix from other components created with the same boilerplate (v1.0.13)

kramttocs commented 2 years ago

Thanks @elad-bar !

Kh3nsu commented 2 years ago

Hello I just installed v1.0.14, sadly im still receiving those errors in my log? Detected integration that uses deprecated async_get_registry to access entity registry, use async_get instead. Please report issue to the custom component author for None using this method at custom_components/None/managers/home_assistant.py, line 96: self._entity_registry = await er_async_get_registry(self._hass)

kramttocs commented 2 years ago

Are you sure it's from blueiris? The error says 'None' for the component name.

Kh3nsu commented 2 years ago

Are you sure it's from blueiris? The error says 'None' for the component name.

Hello,

sorry my bad, it was from blueiris indeed but somehow when I updated it just moved the old version to folder "None" and created a new blueiris folder instead of replacing the old one. I just deleted the None folder and its gone. Stupid me could get on this on my own....