Closed megapearl closed 2 years ago
Thank for the head up.
I just committed https://github.com/jpcornil-git/HA-mcp23017/commit/66cb6d1fe32bc78829c4712effcd4a3a4cb93682 to address this -> could you give it a try (I've not upgraded yet and therefore unable to test right now) ?
async_get_registry was a coroutine (L718 of https://github.com/home-assistant/core/blob/dev/homeassistant/helpers/device_registry.py#L705) while async_get is not (cfr. L705 ) and shouldn't therefore be awaited.
Tested Commit #66cb6d1 (using HACS 'main' branch) and this does not give any deprecation warnings anymore. And tested the binary_sensors and switches, all still working as expected.
Thanks Again!
This is now included in v1.1.1 (bumped homeassistant requirement to 2021.3.0 to match related change)
Hi,
After updating to Home Assistant 2022.6.0 the component gives some deprecation warnings:
I tried to change 'devices = await device_registry.async_get_registry(hass)' to 'devices = await device_registry.async_get(hass)' at line 150 in init.py as mentioned above, but that gives the error below, so it's not as simple as that unfortunately.
The component though is working fine, so no rush, but if you have some time maybe you can look into it.
Best Regards, Donald..