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