diff --git a/pyvlx/discovery.py b/pyvlx/discovery.py index 6e755e22..e28ca743 100644 --- a/pyvlx/discovery.py +++ b/pyvlx/discovery.py @@ -23,11 +23,12 @@ class VeluxHost(): class VeluxDiscovery(): """Class to discover Velux KLF200 devices on the network.""" + hosts: list[VeluxHost | None] = [] + infos: list[AsyncServiceInfo | None] = [] + def __init__(self, zeroconf: AsyncZeroconf,) -> None: """Initialize VeluxDiscovery object.""" self.zc: AsyncZeroconf = zeroconf - self.hosts: list[VeluxHost | None] = [] - self.infos: list[AsyncServiceInfo | None] = [] async def _async_discover_hosts(self, min_wait_time: float, expected_hosts: int | None) -> None: """Listen for zeroconf ServiceInfo."""