Commit Graph

59660 Commits (cab8a59be48a027e2da9ed96aa782f7018d91b59)

Author SHA1 Message Date
Paulus Schoutsen bc2b35765e
Stop processing when we hit bad encryption in mobile app (#88150)
* Stop processing when we hit bad encryption

* Accept webhook payload that is a list

* Rename functions because we import them

* Revert a debug thing

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-16 13:05:16 -05:00
Jan Bouwhuis 57738fbb8c
Replace deprecated SSLContext constant PROTOCOL_TLS in mqtt (#88214)
Replace deprecated SSLContext constants
2023-02-16 13:01:28 -05:00
J. Nick Koston c79157208b
Add python 3.11 to the CI (#88038)
* Remove profiler.memory service

guppy3 is not python3.11 compat
https://github.com/zhuyifei1999/guppy3/issues/41

This service will return if and when guppy3 becomes
python3.11 compat

* squash

* temp remove

* temp dump tests

* temp dump tests

* drop a few more to get a run

* drop a few more to get a run

* Account for changed python3.11 enum.IntFlag behavior in zha

There may be additional changes needed, but I could only
see what needed to be updated based on the tests

* merge

* restore

* restore

* legacy value

* tweak a bit for the python 3.11 timings

* block cchardet

* conditional

* adjust est

* test

* not yet

* tweak

* give a little leeway for timing

* Fix otbr tests

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in #87019

* Increase database test timeout

It looks like we need a little more time to run
with the addiitonal tests in #87019

* Fix aprs tests with python 3.11

* merge fix

* hints

* Update homeassistant/package_constraints.txt

* Update script/gen_requirements_all.py

* Constrain uamqp for Python 3.10 only

* Bump vulcan-api to 2.3.0

see https://github.com/kapi2289/vulcan-api/pull/126
see https://github.com/home-assistant/core/pull/88038
see https://github.com/home-assistant/docker/pull/260

* add ban

* Bump python-matter-server to 2.1.1

* revert

* Update tests/asyncio_legacy.py

---------

Co-authored-by: Erik <erik@montnemery.com>
Co-authored-by: Franck Nijhof <git@frenck.dev>
Co-authored-by: Marcel van der Veldt <m.vanderveldt@outlook.com>
2023-02-16 12:38:32 -05:00
J. Nick Koston 6c542bd314
Speed up formatting statistics data (#88228)
* Speed up fetching statistics by using attrgetter

Uses the faster native code vs a lambda
4aeae28671/Modules/_operator.c (L1406)

* avoid dict lookups

* avoid dict lookups

* naming

* split

* Revert "split"

This reverts commit 0ead89603d.

* Revert "Revert "split""

This reverts commit 20014af168.

* tweak

* tweak

* tweak

* tweak

* Revert "tweak"

This reverts commit d5e4aac7c5.

* Revert "tweak"

This reverts commit 0cebae33f8.

* Revert "tweak"

This reverts commit 0184e47e24.

* comment

* comment

* comment

* reduce local vars

* less
2023-02-16 12:34:20 -05:00
Kevin Stillhammer 792538c124
Fix default value for departure time in google_travel_time (#88255)
Fix default value for departure time
2023-02-16 12:28:39 -05:00
J. Nick Koston d2277fa6db
Fix restore of MQTT subscriptions from reload (#88220) 2023-02-16 11:14:26 -06:00
Marcel van der Veldt d03655cb6f
Bump python-matter-server to 2.1.1 (#88258) 2023-02-16 18:53:03 +02:00
J. Nick Koston cd57cdf8c4
Bump vulcan-api to 2.3.0 for python 3.11 (#88254)
Bump vulcan-api to 2.3.0

see https://github.com/kapi2289/vulcan-api/pull/126
see https://github.com/home-assistant/core/pull/88038
see https://github.com/home-assistant/docker/pull/260
2023-02-16 18:48:43 +02:00
epenet 88cfbf6a34
Add type hints to integration tests (part 22) (#88234) 2023-02-16 14:08:03 +01:00
Marc Mueller 567c7f4f99
Update pydantic to 1.10.5 (#88250) 2023-02-16 14:01:59 +01:00
Erik Montnemery 601ac3d9a9
Drop unnecessary copy from entitydescription.name to _attr_name (#88251) 2023-02-16 13:54:32 +01:00
epenet ba23816a0c
Inverse json import logic (#88099)
* Fix helpers and util

* Adjust components

* Move back errors

* Add report

* mypy

* mypy

* Assert deprecation messages

* Move test_json_loads_object

* Adjust tests

* Fix rebase

* Adjust pylint plugin

* Fix plugin

* Adjust references

* Adjust backup tests
2023-02-16 11:37:57 +01:00
Franck Nijhof 580869a9a6
Update typing-extensions to 4.5.0 (#88236) 2023-02-16 11:21:54 +01:00
epenet dab8557951
Add type hints to integration tests (part 21) (#88233) 2023-02-16 11:15:26 +01:00
Brandon Rothweiler 0748e12341
Fix capitalization of OwnTone integration (#88219) 2023-02-16 10:16:32 +01:00
J. Nick Koston c83ea297b5
Refactor zeroconf task handling (#88204)
* Refactor zeroconf task handling

- Avoid the need to create tasks for most callbacks
- Fixes the untracked task that could get unexpectedly GCed

* be consistant

* be consistant

* fix zeroconf tests

* runtime

* Revert "runtime"

This reverts commit 19e6b61837.

* precalc

* refactor

* tweak

* update tests
2023-02-15 21:44:11 -05:00
J. Nick Koston c0e22be7a8
Fix allowing identical flows to be created before startup (#88213)
The check for identical flows only worked after
the start event. We now check against pending
flows as well

If startup took a while we could end up
with quite the thundering herd
2023-02-15 21:36:00 -05:00
rappenze 57cea6d637
Update pyfibaro to version 0.6.8 (#88203)
Update pyfibaro library to version 0.6.8
2023-02-15 23:28:44 +01:00
Kevin Stillhammer a190bcdc3f
Bump voluptuous-serialize to 2.6.0 (#88211) 2023-02-15 23:14:45 +01:00
Franck Nijhof d3ed8de232
Update Ruff to v0.0.247 (#88210)
* Update Ruff to v0.0.247

* Fix new found violations
2023-02-15 16:46:03 -05:00
Paulus Schoutsen a7e42798da
2023.2.5 (#88190) 2023-02-15 15:30:55 -05:00
Franck Nijhof a1efd59760
Constrain uamqp for Python 3.10 only (#88198) 2023-02-15 14:24:31 -06:00
Ville Skyttä b5a686730c
Let black infer target-version (#88199) 2023-02-15 21:12:54 +01:00
Marcel van der Veldt 684845fd8c Bump python-matter-server to 2.1.0 (#88192)
* Bump python-matter-server to 2.1.0

* Fix tests

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-15 13:24:01 -05:00
Marcel van der Veldt dfe0ededa0
Bump python-matter-server to 2.1.0 (#88192)
* Bump python-matter-server to 2.1.0

* Fix tests

---------

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-15 13:23:03 -05:00
J. Nick Koston c8b827b46b
Fix aprs tests with python 3.11 (#88189)
* Fix aprs tests with python 3.11

* hints
2023-02-15 13:03:48 -05:00
Erik Montnemery 80e2f96097
Add WS command thread/delete_dataset (#88077)
* Add WS command thread/delete_dataset

* Return not_allowed when trying to delete the preferred dataset
2023-02-15 12:55:10 -05:00
J. Nick Koston 4221433ca6
Account for changed python3.11 enum.IntFlag 0 behavior in zha (#88144) 2023-02-15 11:40:48 -06:00
Paulus Schoutsen 3e3936e783 backport try_parse_enum 2023-02-15 12:17:03 -05:00
epenet 80ee196fd8
Add type hints to integration tests (part 19) (#88178) 2023-02-15 18:07:40 +01:00
Jc2k f5a05c1bd2
Support HomeKit Controller Thread Provisioning (#87809) 2023-02-15 16:41:07 +00:00
J. Nick Koston 402170d49e
Increase database test timeout (#88187) 2023-02-15 10:30:01 -06:00
Paulus Schoutsen 0d140426cc Bumped version to 2023.2.5 2023-02-15 11:14:27 -05:00
starkillerOG bbbc864a8c Bump reolink-aio to 0.4.2 (#88175) 2023-02-15 11:13:40 -05:00
Michał Huryn 1ca6c26312 Blebox fix thermobox reporting wrong state (#88169)
fix: fixed climate hvac_mode for when device is off
2023-02-15 11:12:45 -05:00
Mark Broadbent 2d293c19bf Update orjson to resolve segmentation fault during JSON serialisation (#88119)
Home Assistant uses orjson 3.8.5 that contains an issue[1] on musl libc
platforms that causes a segmentation fault.  This particularly affect
Home Assistant container installations reported in #87283 and #87522.

This updates the version to 3.8.6 that resolves the segmentation
fault during json serialisation.

[1] https://github.com/ijl/orjson/issues/335
2023-02-15 11:12:18 -05:00
Thomas Dietrich 634aff0006 Statistics component fix device_class for incremental source sensors (#88096)
* Return None device_class for incremental source sensors

* Ignore linting error

* Fix ignore linting error

* Fix ignore linting error

* Fix ignore linting error

* Catch potential parsing error with enum
2023-02-15 11:11:25 -05:00
Gertjan 55fed18e3e Fixed float number validation in sensor component (#88074) 2023-02-15 11:11:24 -05:00
Ryan Fleming be5777ba59 Bump pyoctoprintapi to 0.1.11 (#88052)
Bump pyoctoprint to get camera url fixes
2023-02-15 11:11:12 -05:00
Paulus Schoutsen 8024a17025 Handle device reg fields not being valid data in openai conversion (#88047)
Handle device reg fields not being valid data
2023-02-15 11:10:15 -05:00
mkmer 97dab32a4c Bump AIOAladdinConnect 0.1.56 (#88041) 2023-02-15 11:09:15 -05:00
mkmer e3273a75da Honeywell disable detergent level by default (#88040)
* Disable fill by default

* Fix tests

* use TANK_FILL.get

* Remove None from attribute get
add reload to sensor test

* Typing
fix iteration error
2023-02-15 11:08:37 -05:00
Aaron Bach 7337cc8e89 Bump `pyopenuv` to 2023.02.0 (#88039) 2023-02-15 11:08:25 -05:00
Daniel Hjelseth Høyer 7a3fdc08a4 Update tibber lib 0.26.13 (#88018) 2023-02-15 11:07:15 -05:00
Jan Bouwhuis 03e9dff327
Allow resetting MQTT climate attributes and ignore empty values (#87936)
Allow reseting MQTT climate attributes
2023-02-15 16:31:49 +01:00
J. Nick Koston 61539686a4
Disable profiler.memory service with python 3.11 (#88136) 2023-02-15 16:20:47 +01:00
Erik Montnemery 6254200b37
Fix otbr tests (#88184) 2023-02-15 16:19:46 +01:00
mkmer 2af4d2152b
Honeywell disable detergent level by default (#88040)
* Disable fill by default

* Fix tests

* use TANK_FILL.get

* Remove None from attribute get
add reload to sensor test

* Typing
fix iteration error
2023-02-15 16:01:20 +01:00
epenet a704e7b40d
Add postgresql 12.14 to database tests (#88071)
* Add postgre 12.14 to database tests

* Rename jobs
2023-02-15 15:56:15 +01:00
Gertjan 66ba0cb1d3
Fixed float number validation in sensor component (#88074) 2023-02-15 15:53:44 +01:00