1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-26 05:57:01 +00:00

Use SignalType to improve typing [core] (#114298)

This commit is contained in:
Marc Mueller
2024-03-27 14:25:02 +01:00
committed by GitHub
parent 6313571fbc
commit 911a31f860
4 changed files with 20 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ from .exceptions import (
)
from .helpers import device_registry, entity_registry, issue_registry as ir, storage
from .helpers.debounce import Debouncer
from .helpers.dispatcher import async_dispatcher_send
from .helpers.dispatcher import SignalType, async_dispatcher_send
from .helpers.event import (
RANDOM_MICROSECOND_MAX,
RANDOM_MICROSECOND_MIN,
@@ -189,7 +189,9 @@ RECONFIGURE_NOTIFICATION_ID = "config_entry_reconfigure"
EVENT_FLOW_DISCOVERED = "config_entry_discovered"
SIGNAL_CONFIG_ENTRY_CHANGED = "config_entry_changed"
SIGNAL_CONFIG_ENTRY_CHANGED = SignalType["ConfigEntryChange", "ConfigEntry"](
"config_entry_changed"
)
NO_RESET_TRIES_STATES = {
ConfigEntryState.SETUP_RETRY,