From 4a66395d5144578af5156249bb0c3095eb49fbd6 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 24 Sep 2024 08:44:11 +0200 Subject: [PATCH] Simplify signal_discovered_config_entry_removed job (#126591) --- homeassistant/components/zeroconf/__init__.py | 1 - homeassistant/config_entries.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/components/zeroconf/__init__.py b/homeassistant/components/zeroconf/__init__.py index 196e16298ef..a5015e9fc8c 100644 --- a/homeassistant/components/zeroconf/__init__.py +++ b/homeassistant/components/zeroconf/__init__.py @@ -395,7 +395,6 @@ class ZeroconfDiscovery: @callback def _handle_config_entry_removed( self, - change: config_entries.ConfigEntryChange, entry: config_entries.ConfigEntry, ) -> None: """Handle config entry changes.""" diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index 099b8ca2807..5df7e9b9cb0 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -196,7 +196,7 @@ SIGNAL_CONFIG_ENTRY_CHANGED = SignalType["ConfigEntryChange", "ConfigEntry"]( @cache def signal_discovered_config_entry_removed( discovery_domain: str, -) -> SignalType[ConfigEntryChange, ConfigEntry]: +) -> SignalType[ConfigEntry]: """Format signal.""" return SignalType(f"{discovery_domain}_discovered_config_entry_removed") @@ -1875,7 +1875,6 @@ class ConfigEntries: async_dispatcher_send_internal( self.hass, signal_discovered_config_entry_removed(discovery_domain), - ConfigEntryChange.REMOVED, entry, ) return {"require_restart": not unload_success}