Simplify signal_discovered_config_entry_removed job (#126591)

pull/126595/head
Erik Montnemery 2024-09-24 08:44:11 +02:00 committed by GitHub
parent f1e8675756
commit 4a66395d51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -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."""

View File

@ -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}