From c25ee0fd380802a8f43b2718d3525deef8c5789e Mon Sep 17 00:00:00 2001 From: Sebastien Astie Date: Thu, 4 May 2023 10:42:28 -0500 Subject: [PATCH] Update __init__.py async_get_registry was deprecated and removed in hass 2023.5.0. This imports async_get instead and requires only this modification to work in 2023.5.0 --- custom_components/ecowitt/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/ecowitt/__init__.py b/custom_components/ecowitt/__init__.py index 4273761..0fa0b53 100644 --- a/custom_components/ecowitt/__init__.py +++ b/custom_components/ecowitt/__init__.py @@ -18,7 +18,7 @@ ) from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity_registry import ( - async_get_registry as async_get_entity_registry, + async_get as async_get_entity_registry, ) from homeassistant.const import (