Skip to content

Commit

Permalink
Move instance variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlizio committed Mar 5, 2024
1 parent e4c0e0d commit 7448a69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyvlx/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 7448a69

Please sign in to comment.