Warn on use of deprecated async_get_registry (#72088)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
epenet
2022-05-18 21:04:06 +02:00
committed by GitHub
parent 349347cade
commit 99941b1c32
3 changed files with 11 additions and 0 deletions

View File

@@ -720,6 +720,9 @@ async def async_get_registry(hass: HomeAssistant) -> DeviceRegistry:
This is deprecated and will be removed in the future. Use async_get instead.
"""
report(
"uses deprecated `async_get_registry` to access device registry, use async_get instead"
)
return async_get(hass)