home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.9k stars 30.97k forks source link

Python BytesWarning in `h2` lib #115379

Closed mib1185 closed 4 months ago

mib1185 commented 7 months ago

The problem

There are BytesWarning in h2 lib during CI run:

/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:20: BytesWarning: Comparison between bytes and string
  CONNECTION_HEADERS = frozenset([
/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:29: BytesWarning: Comparison between bytes and string
  _ALLOWED_PSEUDO_HEADER_FIELDS = frozenset([
/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:39: BytesWarning: Comparison between bytes and string
  _SECURE_HEADERS = frozenset([
/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:46: BytesWarning: Comparison between bytes and string
  _REQUEST_ONLY_HEADERS = frozenset([
/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:55: BytesWarning: Comparison between bytes and string
  _RESPONSE_ONLY_HEADERS = frozenset([b':status', u':status'])
/home/runner/work/core/core/venv/lib/python3.12/site-packages/h2/utilities.py:60: BytesWarning: Comparison between bytes and string
  _CONNECT_REQUEST_ONLY_HEADERS = frozenset([b':protocol', u':protocol'])

What version of Home Assistant Core has the issue?

core-2024.5.dev

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Jandy iAqualink

Link to integration documentation on our website

https://www.home-assistant.io/integrations/iaqualink/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

Hey there @flz, mind taking a look at this issue as it has been labeled with an integration (iaqualink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `iaqualink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign iaqualink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


iaqualink documentation iaqualink source (message by IssueLinks)

mib1185 commented 7 months ago
issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.