Skip to content

Commit

Permalink
scan: Fix python-zeroconf incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
postlund committed Dec 24, 2023
1 parent 1bb0227 commit 0da3258
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base_versions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pydantic==1.10.10
requests==2.23.0
srptools==0.2.0
tabulate==0.9.0
zeroconf==0.72.0
zeroconf==0.129.0
4 changes: 3 additions & 1 deletion tests/protocols/dmap/test_dmap_pairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ async def test_zeroconf_service_published(mock_pairing):
assert len(zeroconf.registered_services) == 1, "no zeroconf service registered"

service = zeroconf.registered_services[0]
assert service.properties["DvNm"] == REMOTE_NAME, "remote name does not match"
assert service.properties[b"DvNm"] == REMOTE_NAME.encode(
"utf-8"
), "remote name does not match"
assert [ipaddress.ip_address("10.0.10.1").packed] == service.addresses


Expand Down

0 comments on commit 0da3258

Please sign in to comment.