Skip to content

Commit

Permalink
Updated to homeassistant 2024.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
iprak committed Nov 7, 2024
1 parent ccb2332 commit dfbe239
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 55 deletions.
11 changes: 7 additions & 4 deletions container_content/pylint/plugins/hass_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class ObsoleteImportMatch:


_OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
"functools": [
ObsoleteImportMatch(
reason="replaced by propcache.cached_property",
constant=re.compile(r"^cached_property$"),
),
],
"homeassistant.backports.enum": [
ObsoleteImportMatch(
reason="We can now use the Python 3.11 provided enum.StrEnum instead",
Expand All @@ -27,10 +33,7 @@ class ObsoleteImportMatch:
],
"homeassistant.backports.functools": [
ObsoleteImportMatch(
reason=(
"We can now use the Python 3.12 provided "
"functools.cached_property instead"
),
reason="replaced by propcache.cached_property",
constant=re.compile(r"^cached_property$"),
),
],
Expand Down
57 changes: 32 additions & 25 deletions container_content/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ requires-python = ">=3.12.0"
dependencies = [
"aiodns==3.2.0",
# Integrations may depend on hassio integration without listing it to
# change behavior based on presence of supervisor
"aiohasupervisor==0.1.0",
"aiohttp==3.10.8",
# change behavior based on presence of supervisor. Deprecated with #127228
# Lib can be removed with 2025.11
"aiohasupervisor==0.2.1",
"aiohttp==3.11.0b3",
"aiohttp_cors==0.7.0",
"aiohttp-fast-zlib==0.1.1",
"aiozoneinfo==0.2.1",
"astral==2.2",
"async-interrupt==1.2.0",
"attrs==23.2.0",
"attrs==24.2.0",
"atomicwrites-homeassistant==1.4.1",
"awesomeversion==24.6.0",
"bcrypt==4.2.0",
Expand All @@ -20,38 +21,40 @@ dependencies = [
"fnv-hash-fast==1.0.2",
# hass-nabucasa is imported by helpers which don't depend on the cloud
# integration
"hass-nabucasa==0.81.1",
"hass-nabucasa==0.84.0",
# When bumping httpx, please check the version pins of
# httpcore, anyio, and h11 in gen_requirements_all
"httpx==0.27.2",
"home-assistant-bluetooth==1.12.2",
"home-assistant-bluetooth==1.13.0",
"ifaddr==0.2.0",
"Jinja2==3.1.4",
"lru-dict==1.3.0",
"mashumaro==3.13.1",
"PyJWT==2.9.0",
# PyJWT has loose dependency. We want the latest one.
"cryptography==43.0.1",
"Pillow==10.4.0",
"propcache==0.2.0",
"pyOpenSSL==24.2.1",
"orjson==3.10.7",
"orjson==3.10.10",
"packaging>=23.1",
"psutil-home-assistant==0.0.1",
"python-slugify==8.0.4",
"PyYAML==6.0.2",
"requests==2.32.3",
"securetar==2024.2.1",
"SQLAlchemy==2.0.31",
"typing-extensions>=4.12.2,<5.0",
"ulid-transform==1.0.2",
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
# https://github.com/home-assistant/core/issues/97248
"urllib3>=1.26.5,<2",
"uv==0.4.17",
"uv==0.4.28",
"voluptuous==0.15.2",
"voluptuous-serialize==2.6.0",
"voluptuous-openapi==0.0.5",
"yarl==1.13.1",
"yarl==1.17.1",
"webrtc-models==0.2.0",
]

[project.urls]
Expand Down Expand Up @@ -442,14 +445,14 @@ filterwarnings = [
# Ignore custom pytest marks
"ignore:Unknown pytest.mark.disable_autouse_fixture:pytest.PytestUnknownMarkWarning:tests.components.met",
"ignore:Unknown pytest.mark.dataset:pytest.PytestUnknownMarkWarning:tests.components.screenlogic",
# https://github.com/rokam/sunweg/blob/3.0.2/sunweg/plant.py#L96 - v3.0.2 - 2024-07-10
# https://github.com/rokam/sunweg/blob/3.1.0/sunweg/plant.py#L96 - v3.1.0 - 2024-10-02
"ignore:The '(kwh_per_kwp|performance_rate)' property is deprecated and will return 0:DeprecationWarning:tests.components.sunweg.test_init",

# -- design choice 3rd party
# https://github.com/gwww/elkm1/blob/2.2.7/elkm1_lib/util.py#L8-L19
# https://github.com/gwww/elkm1/blob/2.2.10/elkm1_lib/util.py#L8-L19
"ignore:ssl.TLSVersion.TLSv1 is deprecated:DeprecationWarning:elkm1_lib.util",
# https://github.com/allenporter/ical/pull/215
# https://github.com/allenporter/ical/blob/8.1.1/ical/util.py#L21-L23
# https://github.com/allenporter/ical/blob/8.2.0/ical/util.py#L21-L23
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:ical.util",
# https://github.com/bachya/regenmaschine/blob/2024.03.0/regenmaschine/client.py#L52
"ignore:ssl.TLSVersion.SSLv3 is deprecated:DeprecationWarning:regenmaschine.client",
Expand Down Expand Up @@ -501,32 +504,36 @@ filterwarnings = [
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:onvif.client",
# https://github.com/okunishinishi/python-stringcase/commit/6a5c5bbd3fe5337862abc7fd0853a0f36e18b2e1 - >1.2.0
"ignore:invalid escape sequence:SyntaxWarning:.*stringcase",
# https://github.com/mvantellingen/python-zeep/pull/1364 - >4.2.1
"ignore:'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:zeep.utils",

# -- fixed for Python 3.13
# https://github.com/rhasspy/wyoming/commit/e34af30d455b6f2bb9e5cfb25fad8d276914bc54 - >=1.4.2
"ignore:'audioop' is deprecated and slated for removal in Python 3.13:DeprecationWarning:wyoming.audio",

# -- other
# Locale changes might take some time to resolve upstream
# https://github.com/Squachen/micloud/blob/v_0.6/micloud/micloud.py#L35 - v0.6 - 2022-12-08
"ignore:'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15:DeprecationWarning:micloud.micloud",
# https://github.com/MatsNl/pyatag/issues/11 - v0.3.7.1
# https://github.com/MatsNl/pyatag/issues/11 - v0.3.7.1 - 2023-10-09
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pyatag.gateway",
# https://github.com/lidatong/dataclasses-json/issues/328
# https://github.com/lidatong/dataclasses-json/pull/351
"ignore:The 'default' argument to fields is deprecated. Use 'dump_default' instead:DeprecationWarning:dataclasses_json.mm",
# https://pypi.org/project/emulated-roku/ - v0.3.0 - 2023-12-19
# https://github.com/martonperei/emulated_roku
"ignore:loop argument is deprecated:DeprecationWarning:emulated_roku",
# https://github.com/thecynic/pylutron - v0.2.15
# https://github.com/w1ll1am23/pyeconet/blob/v0.1.23/src/pyeconet/api.py#L38 - v0.1.23 - 2024-10-08
"ignore:ssl.PROTOCOL_TLS is deprecated:DeprecationWarning:pyeconet.api",
# https://github.com/thecynic/pylutron - v0.2.16 - 2024-10-22
"ignore:setDaemon\\(\\) is deprecated, set the daemon attribute instead:DeprecationWarning:pylutron",
# https://github.com/pschmitt/pynuki/blob/1.6.3/pynuki/utils.py#L21 - v1.6.3
# https://github.com/pschmitt/pynuki/blob/1.6.3/pynuki/utils.py#L21 - v1.6.3 - 2024-02-24
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:pynuki.utils",
# https://github.com/lextudio/pysnmp/blob/v7.1.8/pysnmp/smi/compiler.py#L23-L31 - v7.1.8 - 2024-10-15
"ignore:smiV1Relaxed is deprecated. Please use smi_v1_relaxed instead:DeprecationWarning:pysnmp.smi.compiler",
"ignore:getReadersFromUrls is deprecated. Please use get_readers_from_urls instead:DeprecationWarning:pysmi.reader.url", # wrong stacklevel
# https://github.com/briis/pyweatherflowudp/blob/v1.4.5/pyweatherflowudp/const.py#L20 - v1.4.5 - 2023-10-10
"ignore:This function will be removed in future versions of pint:DeprecationWarning:pyweatherflowudp.const",
# Wrong stacklevel
# https://bugs.launchpad.net/beautifulsoup/+bug/2034451
# https://bugs.launchpad.net/beautifulsoup/+bug/2034451 fixed in >4.12.3
"ignore:It looks like you're parsing an XML document using an HTML parser:UserWarning:html.parser",
# New in aiohttp - v3.9.0
"ignore:It is recommended to use web.AppKey instances for keys:UserWarning:(homeassistant|tests|aiohttp_cors)",
Expand All @@ -547,9 +554,6 @@ filterwarnings = [
"ignore:invalid escape sequence:SyntaxWarning:.*sanix",
# https://pypi.org/project/sleekxmppfs/ - v1.4.1 - 2022-08-18
"ignore:invalid escape sequence:SyntaxWarning:.*sleekxmppfs.thirdparty.mini_dateutil", # codespell:ignore thirdparty
# https://pypi.org/project/vobject/ - v0.9.7 - 2024-03-25
# https://github.com/py-vobject/vobject
"ignore:invalid escape sequence:SyntaxWarning:.*vobject.base",
# - pkg_resources
# https://pypi.org/project/aiomusiccast/ - v0.14.8 - 2023-03-20
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:aiomusiccast",
Expand Down Expand Up @@ -578,8 +582,8 @@ filterwarnings = [
# https://github.com/nextcord/nextcord/issues/1174
# https://github.com/nextcord/nextcord/blob/v2.6.1/nextcord/player.py#L5
"ignore:'audioop' is deprecated and slated for removal in Python 3.13:DeprecationWarning:nextcord.player",
# https://pypi.org/project/SpeechRecognition/ - v3.10.4 - 2024-05-05
# https://github.com/Uberi/speech_recognition/blob/3.10.4/speech_recognition/__init__.py#L7
# https://pypi.org/project/SpeechRecognition/ - v3.11.0 - 2024-05-05
# https://github.com/Uberi/speech_recognition/blob/3.11.0/speech_recognition/__init__.py#L7
"ignore:'aifc' is deprecated and slated for removal in Python 3.13:DeprecationWarning:speech_recognition",
# https://pypi.org/project/voip-utils/ - v0.2.0 - 2024-09-06
# https://github.com/home-assistant-libs/voip-utils/blob/v0.2.0/voip_utils/rtp_audio.py#L3
Expand All @@ -604,7 +608,7 @@ filterwarnings = [
# https://pypi.org/project/directv/ - v0.4.0 - 2020-09-12
"ignore:with timeout\\(\\) is deprecated:DeprecationWarning:directv.directv",
"ignore:datetime.*utcnow\\(\\) is deprecated and scheduled for removal:DeprecationWarning:directv.models",
# https://pypi.org/project/foobot_async/ - v1.0.0 - 2020-11-24
# https://pypi.org/project/foobot_async/ - v1.0.1 - 2024-08-16
"ignore:with timeout\\(\\) is deprecated:DeprecationWarning:foobot_async",
# https://pypi.org/project/httpsig/ - v1.3.0 - 2018-11-28
"ignore:pkg_resources is deprecated as an API:DeprecationWarning:httpsig",
Expand Down Expand Up @@ -899,3 +903,6 @@ split-on-trailing-comma = false

[tool.ruff.lint.mccabe]
max-complexity = 25

[tool.ruff.lint.pydocstyle]
property-decorators = ["propcache.cached_property"]
57 changes: 31 additions & 26 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Home Assistant Core (requirements.txt)
aiodns==3.2.0
aiohasupervisor==0.2.0b0
aiohttp==3.10.10
aiohasupervisor==0.2.1
aiohttp==3.11.0b3
aiohttp_cors==0.7.0
aiohttp-fast-zlib==0.1.1
aiozoneinfo==0.2.1
astral==2.2
async-interrupt==1.2.0
attrs==23.2.0
attrs==24.2.0
atomicwrites-homeassistant==1.4.1
awesomeversion==24.6.0
bcrypt==4.2.0
certifi>=2021.5.30
ciso8601==2.3.1
fnv-hash-fast==1.0.2
hass-nabucasa==0.81.1
hass-nabucasa==0.84.0
httpx==0.27.2
home-assistant-bluetooth==1.13.0
ifaddr==0.2.0
Expand All @@ -25,35 +25,37 @@ cryptography==43.0.1
Pillow==10.4.0
propcache==0.2.0
pyOpenSSL==24.2.1
orjson==3.10.7
orjson==3.10.10
packaging>=23.1
psutil-home-assistant==0.0.1
python-slugify==8.0.4
PyYAML==6.0.2
requests==2.32.3
securetar==2024.2.1
SQLAlchemy==2.0.31
typing-extensions>=4.12.2,<5.0
ulid-transform==1.0.2
urllib3>=1.26.5,<2
uv==0.4.17
uv==0.4.28
voluptuous==0.15.2
voluptuous-serialize==2.6.0
voluptuous-openapi==0.0.5
yarl==1.15.1
yarl==1.17.1
webrtc-models==0.2.0


# Tetsing requirements (requirements_test.txt)
astroid==3.3.4
astroid==3.3.5
coverage==7.6.1
freezegun==1.5.1
license-expression==30.4.0
mock-open==1.4.0
mypy-dev==1.12.0a5
mypy-dev==1.14.0a2
pre-commit==4.0.0
pydantic==1.10.18
pylint==3.3.1
pylint-per-file-ignores==1.3.2
pipdeptree==2.23.4
pip-licenses==5.0.0
pytest-asyncio==0.24.0
pytest-aiohttp==1.0.5
pytest-cov==5.0.0
Expand Down Expand Up @@ -90,24 +92,25 @@ types-xmltodict==0.13.0.3

# Additional requirements_test_pre_commit.txt
codespell==2.3.0
ruff==0.6.9
ruff==0.7.2
yamllint==1.35.1


# Packages from package_constraints.txt which are otherwise installed on run
aiodhcpwatcher==1.0.2
aiodiscover==2.1.0
aiodns==3.2.0
aiohasupervisor==0.2.0b0
aiohasupervisor==0.2.1
aiohttp-fast-zlib==0.1.1
aiohttp==3.10.10
aiohttp==3.11.0b3
aiohttp_cors==0.7.0
aiozoneinfo==0.2.1
astral==2.2
async-interrupt==1.2.0
async-upnp-client==0.41.0
atomicwrites-homeassistant==1.4.1
attrs==23.2.0
attrs==24.2.0
av==13.1.0
awesomeversion==24.6.0
bcrypt==4.2.0
bleak-retry-connector==3.6.0
Expand All @@ -121,20 +124,20 @@ ciso8601==2.3.1
cryptography==43.0.1
dbus-fast==2.24.3
fnv-hash-fast==1.0.2
ha-av==10.1.1
ha-ffmpeg==3.2.0
habluetooth==3.5.0
hass-nabucasa==0.81.1
go2rtc-client==0.1.0
ha-ffmpeg==3.2.1
habluetooth==3.6.0
hass-nabucasa==0.84.0
hassil==1.7.4
home-assistant-bluetooth==1.13.0
home-assistant-frontend==20241002.3
home-assistant-intents==2024.10.2
home-assistant-frontend==20241106.0
home-assistant-intents==2024.11.6
httpx==0.27.2
ifaddr==0.2.0
Jinja2==3.1.4
lru-dict==1.3.0
mutagen==1.47.0
orjson==3.10.7
orjson==3.10.10
packaging>=23.1
paho-mqtt==1.6.1
Pillow==10.4.0
Expand All @@ -151,17 +154,19 @@ PyTurboJPEG==1.7.5
pyudev==0.24.1
PyYAML==6.0.2
requests==2.32.3
securetar==2024.2.1
SQLAlchemy==2.0.31
typing-extensions>=4.12.2,<5.0
ulid-transform==1.0.2
urllib3>=1.26.5,<2
uv==0.4.17
uv==0.4.28
voluptuous-openapi==0.0.5
voluptuous-serialize==2.6.0
voluptuous==0.15.2
yarl==1.15.1
zeroconf==0.135.0
webrtc-models==0.2.0
yarl==1.17.1
zeroconf==0.136.0

# HomeAssistant
pytest-homeassistant-custom-component==0.13.173
homeassistant==2024.10.2
pytest-homeassistant-custom-component==0.13.181
homeassistant==2024.11.0

0 comments on commit dfbe239

Please sign in to comment.