Import Generator from typing_extensions (1) (#118986)
This commit is contained in:
parent
69708db8e0
commit
fe21e2b8ba
34 changed files with 134 additions and 118 deletions
|
@ -3,9 +3,9 @@
|
|||
from __future__ import annotations
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from collections.abc import AsyncGenerator
|
||||
from typing import Any, Final
|
||||
|
||||
from typing_extensions import AsyncGenerator
|
||||
import voluptuous as vol
|
||||
from xknx import XKNX
|
||||
from xknx.exceptions.exception import (
|
||||
|
@ -118,7 +118,7 @@ class KNXCommonFlow(ABC, ConfigEntryBaseFlow):
|
|||
self._tunnel_endpoints: list[XMLInterface] = []
|
||||
|
||||
self._gatewayscanner: GatewayScanner | None = None
|
||||
self._async_scan_gen: AsyncGenerator[GatewayDescriptor, None] | None = None
|
||||
self._async_scan_gen: AsyncGenerator[GatewayDescriptor] | None = None
|
||||
|
||||
@abstractmethod
|
||||
def finish_flow(self) -> ConfigFlowResult:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue