mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Cleanup deprecated async_get_registry in fronius (#72067)
This commit is contained in:
parent
7c4cc389c9
commit
619a92eab9
@ -161,7 +161,7 @@ class FroniusSolarNet:
|
||||
"value"
|
||||
]
|
||||
|
||||
device_registry = await dr.async_get_registry(self.hass)
|
||||
device_registry = dr.async_get(self.hass)
|
||||
device_registry.async_get_or_create(
|
||||
config_entry_id=self.config_entry.entry_id,
|
||||
**solar_net_device,
|
||||
|
Loading…
x
Reference in New Issue
Block a user