Describe the bug
When I run mirobo discover it fails with an error.
Version information (please complete the following information):
- OS: Linux
- python-miio: 0.5.4 (latest from PIP atm)
To Reproduce
Steps to reproduce the behavior:
- run
mirobo discover
Expected behavior
Getting a list of discovered devices
Console output
INFO:miio.discovery:Discovering devices with mDNS, press any key to quit...
Exception in thread zeroconf-ServiceBrowser__miio._udp.local._229705:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/home/user/.local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1750, in run
self._service_state_changed.fire(
File "/home/user/.local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1508, in fire
h(**kwargs)
File "/home/user/.local/lib/python3.9/site-packages/zeroconf/__init__.py", line 1606, in on_change
listener.add_service(*args)
File "/home/user/.local/lib/python3.9/site-packages/miio/discovery.py", line 256, in add_service
addr = str(ipaddress.ip_address(info.address))
AttributeError: 'ServiceInfo' object has no attribute 'address'
Describe the bug
When I run
mirobo discoverit fails with an error.Version information (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
mirobo discoverExpected behavior
Getting a list of discovered devices
Console output