From 9da682b31456f291ec9b18543f5df5a659e72e56 Mon Sep 17 00:00:00 2001 From: Tomaae <23486452+tomaae@users.noreply.github.com> Date: Thu, 26 May 2022 10:16:58 +0200 Subject: [PATCH] added option to manually remove devices #198 --- custom_components/mikrotik_router/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/custom_components/mikrotik_router/__init__.py b/custom_components/mikrotik_router/__init__.py index 4d802cd..286949a 100644 --- a/custom_components/mikrotik_router/__init__.py +++ b/custom_components/mikrotik_router/__init__.py @@ -77,3 +77,11 @@ async def async_unload_entry(hass, config_entry) -> bool: hass.data[DOMAIN].pop(config_entry.entry_id) return unload_ok + + +# --------------------------- +# async_remove_config_entry_device +# --------------------------- +async def async_remove_config_entry_device(hass, config_entry, device_entry) -> bool: + """Remove a config entry from a device.""" + return True