codetheweb / tuyapi

🌧 An easy-to-use API for devices that use Tuya's cloud services. Documentation: https://codetheweb.github.io/tuyapi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace deprecated async_get_registry with async_get instead

joopmartens opened this issue · comments

Describe the bug
HomeAssistant gives the following message in the 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 localtuya using this method at custom_components/localtuya/init.py, line 315: ent_reg = await er.async_get_registry(hass)

To Reproduce
Start/restart HA or integration and check log.

Expected behavior
Start/restart without HA log messages

Running HA 2022.6.2

Looks like you're looking for rospogrigio/localtuya. This is the tuyapi library enabling local communication with Tuya devices, not the home assistant component.