aex351 / home-assistant-neerslag-app

Neerslag app for Home Assistant. All-in-one package (Sensors + Card).
62 stars 18 forks source link

deprecated `async_get_registry` to access device registry, use async_get instead #28

Closed tjorim closed 2 years ago

tjorim commented 2 years ago

Noticed the following warning on HA beta 2022.6 for the Neerslag app.

2022-05-25 22:35:41 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 component author for neerslag using this method at custom_components/neerslag/sensor.py, line 43: dev_reg = await hass.helpers.device_registry.async_get_registry()
2022-05-25 22:35:41 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 neerslag using this method at custom_components/neerslag/sensor.py, line 44: ent_reg = await hass.helpers.entity_registry.async_get_registry()
joostvkempen commented 2 years ago

warning also present in HA 2022.6.0 final release

Jurgenn22 commented 2 years ago

warning also present in HA 2022.6.2 final release.

aex351 commented 2 years ago

As of now it is a warning message indicating that this specific function has become deprecated. Currently this has no impact on the Neerslag App. In an upcoming update of the Neerslag App this function will be removed as it is not actively used.

This warning message can be ignored.

aex351 commented 2 years ago

Function has been removed from code. Home Assistant should no longer display a warning message. Commit was made targeting #32.