Commit Graph

59187 Commits

Author SHA1 Message Date
J. Nick Koston
f237bb14ca Add strict typing to yalexs_ble (#88086)
* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble

* Add strict typing to yalexs_ble
2023-02-14 11:38:51 -05:00
J. Nick Koston
f4ef64a7d7 Fix rmvtransport integration with py3.11 (#88094)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
2023-02-14 11:32:36 -05:00
J. Nick Koston
85b852d8ad Fix cloud integration with py3.11 (#88088)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
2023-02-14 11:31:52 -05:00
J. Nick Koston
692920e01e Fix hassio integration with py3.11 (#88090)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
2023-02-14 11:31:01 -05:00
J. Nick Koston
e6b7f1d487 Fix forked_daapd integration with py3.11 (#88091)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
2023-02-14 11:30:16 -05:00
Teemu R
5335dfbc67 Prefer effect over other light settings for tplink (#85642) 2023-02-14 10:29:11 -06:00
J. Nick Koston
c54500cb1f Fix invalid spec in mqtt tests for py3.11 (#88092)
Fix invalid spec in mqtt tests

unittest.mock.InvalidSpecError: Cannot spec a Mock object.
2023-02-14 11:28:46 -05:00
J. Nick Koston
9593d9610d Fix sleepiq with python 3.11 (#88098)
There is a breaking change in enum behavior

see https://blog.pecar.me/python-enum
2023-02-14 11:26:33 -05:00
J. Nick Koston
3e8a6cb3b7 Fix unifiprotect with python 3.11 (#88101)
There are some breaking changes to Enum https://blog.pecar.me/python-enum

needs https://github.com/AngellusMortis/pyunifiprotect/pull/263 but
does not need to be in this PR
2023-02-14 11:26:14 -05:00
Teemu R
95476f46c2 Shorten tplink update cycle (#87399) 2023-02-14 10:15:47 -06:00
Martin Hjelmare
4b58800530 Fix apple tv untracked task (#88102) 2023-02-14 17:14:17 +01:00
J. Nick Koston
f11ba1b7cb Fix group integration with py3.11 (#88089)
In py3.11 `Passing coroutines is forbidden, use tasks explicitly`
2023-02-14 10:24:10 -05:00
J. Nick Koston
d8ee60ee44 Change DeviceAutomationDetails to use a dataclass for py3.11 (#88087)
A NamedTuple can no longer be an enum value in py3.11
2023-02-14 10:22:57 -05:00
Daniel Hjelseth Høyer
e96210fced Fix Tibber stats (#88025) 2023-02-14 08:14:10 -06:00
Aaron Bach
16a5275461 Add a calendar entity to Ridwell (#86117) 2023-02-14 06:58:41 -07:00
Martin Hjelmare
e1a5d5a749 Refactor tradfri sensor tests (#88026) 2023-02-14 13:35:27 +01:00
Matthias Alphart
d7861e79c5 Update xknx to 2.5.0 (#88069) 2023-02-14 12:44:43 +01:00
epenet
7d7ee1cead Cleanup renault services (#88064) 2023-02-14 12:05:23 +01:00
Erik Montnemery
ee6886dabd Add dormakaba_dkey door and dead bolt binary sensors (#87990)
* Add dormakaba_dkey door and dead bolt binary sensors

* Rename dead bolt sensor

* Fix docstring

---------

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2023-02-14 11:55:58 +01:00
Paulus Schoutsen
fa5c60c9ee Handle device reg fields not being valid data in openai conversion (#88047)
Handle device reg fields not being valid data
2023-02-14 11:45:27 +01:00
Ryan Fleming
1431979eab Bump pyoctoprintapi to 0.1.11 (#88052)
Bump pyoctoprint to get camera url fixes
2023-02-14 08:40:03 +01:00
mkmer
01cd60fc12 Bump AIOAladdinConnect 0.1.56 (#88041) 2023-02-13 23:46:46 -05:00
J. Nick Koston
94386b6674 Bump home-assistant-bluetooth to 1.9.3 (#88051) 2023-02-13 23:28:30 -05:00
J. Nick Koston
c1039fab4a Bump dbus-fast to 1.84.1 (#88042) 2023-02-13 23:19:49 -05:00
J. Nick Koston
8a2d81fe4b Bump zeroconf to 0.47.3 (#88045)
changelog: https://github.com/python-zeroconf/python-zeroconf/compare/0.47.1...0.47.3
2023-02-13 23:19:36 -05:00
Paulus Schoutsen
d54f59478f Keep task references while running (#87970)
* Keep task references while running

* Update pilight tests pointing at correct logger call

* Fix graphite tests

* Fix profiler tests

* More graphite test fixes

* Remove extra sleep

* Fix tests

* Shutdown background tasks as part of stage 1

* Remove unnecessary sleep in test

* Remove unused method on mock hass

* Skip on cancelled too

* Remove background tasks

* Test trigger variables without actually sleeping

* Fix graphite

* One more graphite grrrrrrr
2023-02-13 23:16:59 -05:00
J. Nick Koston
e41af8928b Restore original aiohttp cancelation behavior (#88046) 2023-02-13 22:00:36 -06:00
J. Nick Koston
484027023c Fix new stats rows creating data in the old created column (#88013) 2023-02-13 21:53:37 -06:00
dcmeglio
3d9d79684d Add support for telnet connections for Denonavr integration (#85980)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-13 18:36:09 -06:00
Aaron Bach
b4c343b1a2 Bump pyopenuv to 2023.02.0 (#88039) 2023-02-13 16:40:49 -07:00
Daniel Hjelseth Høyer
e0235fbb30 Update tibber lib 0.26.13 (#88018) 2023-02-13 16:46:25 -06:00
epenet
efef915fc7 Add mariadb 10.3.32 to database tests (#87741)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-13 16:28:39 -06:00
Assaf Inbal
d8ec259e9a Add mjpeg camera stream_source (#86908)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-13 16:12:12 -06:00
Erik Montnemery
4ca0a24f87 Increase test scope of MariaDB + PostgreSQL tests (#87019)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-13 15:58:13 -06:00
J. Nick Koston
026b4f5307 Bump aiohttp to 3.8.4 (#88032) 2023-02-13 15:52:20 -06:00
Martin Hjelmare
ab2ab1573e Refactor tradfri diagnostics tests (#88017) 2023-02-13 18:39:48 +01:00
Martin Hjelmare
8993a36e27 Refactor tradfri fan tests (#87999) 2023-02-13 15:40:21 +01:00
J. Nick Koston
ae06d9fd5c Bump aioesphomeapi to 13.3.1 (#87969)
* Bump aioesphomeapi to 13.3.0

We probably need to include https://github.com/esphome/aioesphomeapi/pull/382
as well in another bump

* bump
2023-02-13 09:07:56 -05:00
J. Nick Koston
03eea7bd3f Avoid subprocess memory copy when c library supports posix_spawn (#87958)
* use posix spawn on alpine

* Avoid subprocess memory copy when c library supports posix_spawn

By default python 3.10 will use the fork() which has to
copy all the memory of the parent process (in our case
this can be huge since Home Assistant core can use
hundreds of megabytes of RAM). By using posix_spawn
this is avoided.

In python 3.11 vfork will also be available
https://github.com/python/cpython/issues/80004#issuecomment-1093810689
https://github.com/python/cpython/pull/11671 but we won't
always be able to use it and posix_spawn is considered safer
https://bugzilla.kernel.org/show_bug.cgi?id=215813#c14

The subprocess library doesn't know about musl though
even though it supports posix_spawn https://git.musl-libc.org/cgit/musl/log/src/process/posix_spawn.c
so we have to teach it since it only has checks for glibc
1b736838e6/Lib/subprocess.py (L745)

The constant is documented as being able to be flipped here:
https://docs.python.org/3/library/subprocess.html#disabling-use-of-vfork-or-posix-spawn

* Avoid subprocess memory copy when c library supports posix_spawn

By default python 3.10 will use the fork() which has to
copy memory of the parent process (in our case
this can be huge since Home Assistant core can use
hundreds of megabytes of RAM). By using posix_spawn
this is avoided and subprocess creation does not
get discernibly slow the larger the Home Assistant
python process grows.

In python 3.11 vfork will also be available
https://github.com/python/cpython/issues/80004#issuecomment-1093810689
https://github.com/python/cpython/pull/11671 but we won't
always be able to use it and posix_spawn is considered safer
https://bugzilla.kernel.org/show_bug.cgi?id=215813#c14

The subprocess library doesn't know about musl though
even though it supports posix_spawn https://git.musl-libc.org/cgit/musl/log/src/process/posix_spawn.c
so we have to teach it since it only has checks for glibc
1b736838e6/Lib/subprocess.py (L745)

The constant is documented as being able to be flipped here:
https://docs.python.org/3/library/subprocess.html#disabling-use-of-vfork-or-posix-spawn

* missed some

* adjust more tests

* coverage
2023-02-13 09:02:51 -05:00
epenet
cf2fcdfba1 Add mariadb 10.6.10 to database tests (#87989) 2023-02-13 14:42:04 +01:00
epenet
ea11a30a35 Add type hints to integration tests (part 13) (#87998) 2023-02-13 14:38:37 +01:00
Paulus Schoutsen
c557cd2b1e Make all history stats tests async (#87973) 2023-02-13 14:34:28 +01:00
epenet
1e352b60df Add type hints to integration tests (part 11) (#87996) 2023-02-13 14:22:49 +01:00
Erik Montnemery
8f2a764a43 Adjust suggested_display_precision according to unit conversion (#87614) 2023-02-13 13:55:12 +01:00
epenet
ea29cdfe83 Add type hints to integration tests (part 12) (#87997) 2023-02-13 13:03:51 +01:00
G Johansson
896dd1a36b Change name to entity_id Text platform error messages (#87963) 2023-02-13 12:51:38 +01:00
mletenay
ea94a2fbfd Add support for 4 MPTT inverter (#86901) 2023-02-13 12:49:11 +01:00
Franck Nijhof
b0146618cb Update pytest-asyncio to 0.20.3 (#87995) 2023-02-13 12:40:19 +01:00
Jan Bouwhuis
950ee34514 Correct typing on hass_storage fixure (#87986)
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2023-02-13 12:12:34 +01:00
David Bonnes
dc8ceaf4bf Change geniushub codeowner (#87918) 2023-02-13 12:11:38 +01:00