epenet
3a9adacdde
Add type hints to integration tests (part 20) ( #88179 )
2023-02-15 15:23:34 +01:00
Erik Montnemery
8613d60c5e
Add WS command for discovering Thread routers ( #88021 )
...
* Add WS command for discovering Thread routers
* Fix type annotations
* Mock zeroconf in tests
* Key discovery by external MAC address
* Add tests
* Include hostname in data, allow missing fields
* Fix typo
* Include server instead of hostname
2023-02-15 15:15:29 +01:00
epenet
c7fc90f8a0
Adjust imports in rflink test_init ( #88177 )
2023-02-15 15:11:22 +01:00
Franck Nijhof
f67ebcade1
Enable Ruff SIM201 ( #88171 )
2023-02-15 14:43:02 +01:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
J. Nick Koston
6f38bc274a
Fix netatmo with python 3.11 ( #88093 )
2023-02-15 14:02:33 +01:00
epenet
b21bf8763e
Fix mobile app regression accepting sensor states ( #88164 )
...
* Fix mobile app regression accepting sensor states
* Adjust tests
2023-02-15 07:17:19 -05:00
Franck Nijhof
9030ca05b1
Enable Ruff SIM118 ( #87772 )
2023-02-15 12:39:12 +01:00
epenet
2cdc741900
Add type hints to integration tests (part 17) ( #88163 )
2023-02-15 11:14:04 +01:00
Mike Heath
04e9c7748f
Support Fully Kiosk Browser device discovery via MQTT ( #88109 )
...
Support FKB device discovery via MQTT
2023-02-15 11:11:04 +01:00
epenet
88444b2e0c
Add type hints to integration tests (part 16) ( #88008 )
2023-02-15 10:50:02 +01:00
epenet
6c430e03bc
Add type hints to integration tests (part 14) ( #88005 )
2023-02-15 10:31:43 +01:00
Thomas Dietrich
a0e0feb444
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 10:22:09 +01:00
Maciej Bieniek
95bb019f71
Do not reload Shelly TRV entry when not needed ( #88037 )
...
* Do not reload the entry when the target temperature changes
* Do not reload the entry when the mode changes
* Increase test coverage
* Increase test coverage
2023-02-15 10:21:53 +01:00
Maciej Bieniek
cd4ce86f07
Add support for `triple_push` event for Shelly gen2 devices ( #88081 )
...
* Add support for triple_push event
* Sort
* Fix tests
2023-02-15 10:20:27 +01:00
epenet
50cbabb2d8
Add type hints to integration tests (part 15) ( #88006 )
2023-02-15 10:00:49 +01:00
Jan Bouwhuis
6c23d6abfe
Fix doc string in mqtt test ( #88138 )
...
Fix docstr
2023-02-15 05:56:03 +01:00
Brandon Rothweiler
7cf5fd5952
Fix typo in OpenAI prompt ( #88137 )
2023-02-14 20:33:58 -05:00
J. Nick Koston
44e8e808a1
Fix apprise tests for python 3.11 ( #88126 )
2023-02-14 15:25:25 -05:00
J. Nick Koston
aaeb909148
Fix wemo tests with py3.11 ( #88123 )
2023-02-14 13:58:57 -06:00
J. Nick Koston
4d90d3cd91
Fix vera tests with python3.11 ( #88124 )
2023-02-14 13:58:44 -06:00
J. Nick Koston
e7d5943c90
Fix zwave_me tests with python 3.11 ( #88122 )
2023-02-14 13:58:29 -06:00
Aaron Bach
6bb7a7225d
Revert "Add a calendar entity to Ridwell ( #86117 )" ( #88106 )
...
This reverts commit 16a5275461
.
2023-02-14 10:23:32 -07:00
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
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
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
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
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
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
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
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
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
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
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
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
Franck Nijhof
f1daeabff0
Add homeassistant.reload_all service ( #87769 )
2023-02-13 12:09:29 +01:00
epenet
03710e58b5
Add type hints to integration tests (part 9) ( #87983 )
2023-02-13 12:06:51 +01:00
Franck Nijhof
6359775cfc
Add more entities for Elgato Key Light Mini ( #87793 )
...
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2023-02-13 11:54:50 +01:00
epenet
89e4ee5320
Add type hints to integration tests (part 8) ( #87982 )
2023-02-13 11:13:48 +01:00
epenet
9404a107b2
Add type hints to integration tests (part 10) ( #87985 )
2023-02-13 10:25:26 +01:00
Erik Montnemery
3f910b49ae
Fix sensor unit conversion ( #87978 )
2023-02-13 10:08:07 +01:00