Skip to content

Update Zeroconf beyond 0.32.0 forces asyncio #225

@jlusiardi

Description

@jlusiardi

Zeroconf versions greater 0.32.1 switched to async handling:

tests/controller_test.py::TestControllerIpUnpaired::test_01_1_discover
  /home/jlusiardi/Documents/src/homekit_python_kvaellning/venv/lib/python3.9/site-packages/_pytest/threadexception.py:75: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-2
  
  Traceback (most recent call last):
    File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
      self.run()
    File "/home/jlusiardi/Documents/src/homekit_python_kvaellning/tests/controller_test.py", line 45, in run
      self.a_s.publish_device()
    File "/home/jlusiardi/Documents/src/homekit_python_kvaellning/homekit/accessoryserver.py", line 1347, in publish_device
      self.zeroconf.check_service(self.zeroconf_info, allow_name_change=False)
  AttributeError: 'Zeroconf' object has no attribute 'check_service'

Try to update zeroconf and rewrite stuff to be asyncio compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions