mirror of
https://github.com/home-assistant/core.git
synced 2026-08-24 10:13:52 -05:00
Migrate gatus to call async_remove_device (#178053)
This commit is contained in:
committed by
Bram Kragten
parent
28754d012e
commit
9983ce4ccb
@@ -70,10 +70,7 @@ class GatusDataUpdateCoordinator(DataUpdateCoordinator[dict[str, EndpointStatus]
|
||||
and identifier[1].removeprefix(f"{self._entry_id}_") in stale_keys
|
||||
for identifier in device.identifiers
|
||||
):
|
||||
device_registry.async_update_device(
|
||||
device.id,
|
||||
remove_config_entry_id=self._entry_id,
|
||||
)
|
||||
device_registry.async_remove_device(device.id)
|
||||
self._known_endpoint_keys = current_keys
|
||||
|
||||
return {ep.key: ep for ep in raw_endpoints}
|
||||
|
||||
Reference in New Issue
Block a user