filipvh / hass-nhc2

Niko Home Control II Home Assistant Integration
MIT License
36 stars 26 forks source link

change depricated async_get_registry() to async_get() #52

Open blatruwe opened 1 year ago

blatruwe commented 1 year ago

change depricated async_get_registry() to async_get()

blatruwe commented 1 year ago

fix for below warning:

WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that uses deprecated async_get_registry to access device registry, use async_get instead. Please report issue to the custom integration author for nhc2 using this method at custom_components/nhc2/init.py, line 118: dev_reg = await hass.helpers.device_registry.async_get_registry()