-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
Command:
python3 -m homekit.discover
Results:
Properties: {b'ff': b'1', b'ci': b'2', b'id': b'a8:1b:6a:01:d1:bc', b'sf': b'1', b'md': b'Smart Bridge 2', b'c#': b'11', b's#': b'1'}
Name: Smart Bridge 2._hap._tcp.local.
Url: http://192.168.7.37:4548
Configuration number (c#): 11
Feature Flags (ff): Supports Pairing (Flag: 1)
Device ID (id): a8:1b:6a:01:d1:bc
Model Name (md): Smart Bridge 2
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/srv/homeassistant/lib/python3.5/site-packages/homekit/discover.py", line 32, in <module>
discover_homekit_devices()
File "/srv/homeassistant/lib/python3.5/site-packages/homekit/zeroconf.py", line 55, in discover_homekit_devices
print('Protocol Version (pv): {pv}'.format(pv=info.properties[b'pv'].decode()))
KeyError: b'pv'I added the top print to show the entire contents of info.properties, funny enough all the other devices that show up list a PV.
A simple if b'pv' in info.properties: wrap around that print line solved that particular issue for me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels