mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Improve Callable annotations (#133050)
This commit is contained in:
parent
839312c65c
commit
0a748252e7
@ -49,7 +49,7 @@ class BaseCrownstoneFlowHandler(ConfigEntryBaseFlow):
|
||||
cloud: CrownstoneCloud
|
||||
|
||||
def __init__(
|
||||
self, flow_type: str, create_entry_cb: Callable[..., ConfigFlowResult]
|
||||
self, flow_type: str, create_entry_cb: Callable[[], ConfigFlowResult]
|
||||
) -> None:
|
||||
"""Set up flow instance."""
|
||||
self.flow_type = flow_type
|
||||
|
@ -549,7 +549,7 @@ async def async_setup_entry(
|
||||
dsmr_version = entry.data[CONF_DSMR_VERSION]
|
||||
entities: list[DSMREntity] = []
|
||||
initialized: bool = False
|
||||
add_entities_handler: Callable[..., None] | None
|
||||
add_entities_handler: Callable[[], None] | None
|
||||
|
||||
@callback
|
||||
def init_async_add_entities(telegram: Telegram) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user