Simplify signal_discovered_config_entry_removed job (#126591)
parent
f1e8675756
commit
4a66395d51
|
@ -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."""
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue