epoplavskis / homeassistant_salus

Home Assistant integration with Salus devices
MIT License
48 stars 17 forks source link

Deprecated Code Causing Failure #48

Open Algernon3000 opened 1 year ago

Algernon3000 commented 1 year ago

There appears to be an issue with the integration which I think is due to some deprecated code since Home Assistant V2023.5.0

Googling the error in the log led me to this page: https://community.home-assistant.io/t/error-async-get-registry-after-core-2023-5-0/567951/6 Someone there says: "I fixed this issue and submitted a pull request. The fix is trivial - in the init.py change line 21 from: async_get_registry as async_get_entity_registry, to: async_get as async_get_entity_registry, effectively async_get_registry was marked as deprecated and was removed in 2023.5.0 and async_get is the replacement."

I've tried a basic modification (basically just find and replacing) which was clearly rather optimistic, and didn't work. Could anyone advise how big a job it might be to update the init file to use the latest code (async_get) pls?