Simplify signal_discovered_config_entry_removed job (#126591)
This commit is contained in:
parent
f1e8675756
commit
4a66395d51
2 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue