-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Bump zeroconf to 0.74.0 #97745
Bump zeroconf to 0.74.0 #97745
Conversation
changelog: python-zeroconf/python-zeroconf@0.72.3...0.74.0 - more cython build fixes - performance improvements (mostly for pyatv)
ext_pan_id = service.properties.get(b"xp") | ||
network_name = try_decode(service.properties.get(b"nn")) | ||
model_name = try_decode(service.properties.get(b"mn")) | ||
service_properties = service.properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was typed to dict
before in upstream zeroconf
so mypy
never errored before. This design was inherited from many many years ago and changing it would be breaking. The lack of typing was hiding the issue.
service_properties = service.properties | ||
if TYPE_CHECKING: | ||
# Service properties are always bytes if they are set from the network. | ||
# For legacy backwards compatibility zeroconf allows properties to be set | ||
# as strings but we never do that so we can safely cast here. | ||
service_properties = cast(dict[bytes, bytes | None], service_properties) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was typed to dict
before in upstream zeroconf
so mypy
never errored before. This design was inherited from many many years ago and changing it would be breaking. The lack of typing was hiding the issue.
* Bump zeroconf to 0.74.0 changelog: python-zeroconf/python-zeroconf@0.72.3...0.74.0 - more cython build fixes - performance improvements (mostly for pyatv) * handle typing * handle typing * remove if TYPE_CHECKING, this doesnt get called that often * remove if TYPE_CHECKING, this doesnt get called that often
Proposed change
changelog: python-zeroconf/python-zeroconf@0.72.3...0.74.0
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: