Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Zeroconf beyond 0.32.0 forces asyncio #225

Open
jlusiardi opened this issue Feb 2, 2022 · 0 comments
Open

Update Zeroconf beyond 0.32.0 forces asyncio #225

jlusiardi opened this issue Feb 2, 2022 · 0 comments

Comments

@jlusiardi
Copy link
Owner

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.

jlusiardi added a commit that referenced this issue Feb 2, 2022
newer versions drop 'Zeroconf.check_service'. See
#225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant