Jan Morawiec
35ff3afa12
Refactor unittest tests to use pytest ( #127770 )
...
* Refactor unittest tests to use pytest
* Add type annotations
* Use caplog to assert logs
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-10-17 21:28:14 +02:00
Steven B.
59e5eb9a1c
Always use uv from virtual environment at runtime ( #128371 )
2024-10-16 19:42:25 +02:00
Erik Montnemery
0956dbb578
Rename `UnitOfConductivity` enum members ( #127919 )
...
* Rename UnitOfConductivity enum members
* Update test snapshots
2024-10-08 14:44:01 +02:00
Michael
ffa6b5fcb2
Use two words for Nautical miles unit ( #126905 )
2024-09-27 13:16:13 +02:00
Michael
26b5dab12b
Add `nmi` (nautical miles) as valid distance unit ( #124723 )
2024-09-27 10:40:59 +02:00
starkillerOG
69ecdda5f5
Add SSL Cipher option to aiohttp async_get_clientsession ( #126317 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-24 21:31:52 +02:00
Trevor Schirmer
96b7fc9a75
Add mm/s and in/s As Unit Of Speed ( #125044 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-09-22 09:01:46 -05:00
Alberto Montes
5d2f8319b1
Update string formatting to use f-string on tests ( #125986 )
...
* Update string formatting to use f-string on tests
* Update test_package.py
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Update statement given feedback
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
2024-09-19 10:32:38 +02:00
Robert Resch
d9812f0d48
Fix uv installing in user site packages ( #125808 )
2024-09-15 14:53:45 +02:00
Robert Resch
7555f209b6
Use uv at runtime too ( #125110 )
2024-09-11 09:43:26 +02:00
Sergey Dudanov
dcd7830a35
Add calories to energy sensor device class ( #122796 )
...
* added calories to energy class
* changes
* temporarily solving the problem with conversion accuracy
* add tests
* added calories to energy class
* changes
* add tests
* Update homeassistant/util/unit_conversion.py
Co-authored-by: Robert Resch <robert@resch.dev>
* Update homeassistant/util/unit_conversion.py
Co-authored-by: Robert Resch <robert@resch.dev>
* apply suggestions
* Update homeassistant/util/unit_conversion.py
---------
Co-authored-by: Robert Resch <robert@resch.dev>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-09-10 12:22:15 +02:00
Erik Montnemery
404a7bab18
Wrap OSError in loader.load_yaml ( #124406 )
2024-08-22 09:06:41 -05:00
Erik Montnemery
ab6d0e3277
Handle !include without arguments in configuration.yaml ( #124399 )
...
* Prevent !include without arguments in configuration.yaml from crashing core
* Add test
2024-08-22 12:08:24 +02:00
Erik Montnemery
6c01e4b99c
Use BaseEventLoop._thread_id instead of a custom attribute ( #124054 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-08-17 10:59:39 +02:00
J. Nick Koston
b15ea58851
Relocate code to get scheduled TimerHandles ( #123546 )
2024-08-12 09:15:33 +02:00
epenet
ad26db7dc8
Replace pylint broad-exception-raised rule with ruff ( #123021 )
2024-08-02 12:24:03 +02:00
epenet
d16a2fac80
Rename variable in async tests ( #122996 )
2024-08-01 09:20:21 +02:00
Erik Montnemery
9b497aebb4
Fix bug in timeout util related to multiple global freezes ( #122466 )
2024-07-29 10:12:18 +02:00
Marc Mueller
90e7d82049
Use correct enum in UnitSystem tests ( #122256 )
2024-07-20 17:33:48 +02:00
Marc Mueller
a6068dcdf2
Update import locations in tests ( #122216 )
2024-07-20 11:16:04 +02:00
J. Nick Koston
7958c0825e
Fix blocking process call in process tests ( #121104 )
...
Discovered by ruff in https://github.com/home-assistant/core/pull/120799
2024-07-03 22:26:03 +02:00
J. Nick Koston
291f309c0e
Remove unnecessary lambdas in timeout tests ( #121101 )
2024-07-03 22:24:41 +02:00
epenet
1332e39f9e
Cleanup deprecated json utils ( #121069 )
...
* Cleanup deprectated json utils
* Adjust pylint
2024-07-03 15:57:32 +02:00
epenet
faf43ed4c7
Adjust Generator type hints in tests ( #121013 )
2024-07-02 14:12:02 +02:00
J. Nick Koston
001ee0cc0b
Downgrade logging previously reported asyncio block to debug ( #120942 )
2024-07-01 18:26:20 +02:00
Marc Mueller
ca55986057
Import Generator from collections.abc (1) ( #120914 )
2024-07-01 11:51:51 +02:00
Joost Lekkerkerker
b56c4a757c
Bump ruff to 0.5.0 ( #120749 )
2024-06-28 15:23:21 +02:00
Joost Lekkerkerker
03c6e0c55f
Fix SIM300 ( #120725 )
2024-06-28 10:46:02 +02:00
J. Nick Koston
f7e194b32c
Adjust blocking I/O messages to provide developer help ( #120113 )
2024-06-21 12:55:22 -05:00
dontinelli
0dd5391cd7
Add Siemes and Millisiemens as additional units of conductivity and enable conversion between conductivity units ( #118728 )
2024-06-21 11:10:15 +02:00
epenet
2a7e78a80f
Ignore broad-exception-raised pylint warnings in tests ( #119468 )
2024-06-12 12:21:41 +02:00
epenet
7388271689
Fix unspecified-encoding warnings in tests ( #119405 )
2024-06-11 17:58:40 +02:00
epenet
18722aeccb
Improve type hints and fix pylint warnings in util tests ( #119355 )
2024-06-11 15:07:40 +02:00
epenet
1974ea4fdd
Improve type hints in yaml util tests ( #119358 )
2024-06-11 15:01:54 +02:00
Sid
721b2c2ca8
Enable Ruff PT012 ( #113957 )
2024-06-08 17:59:08 +02:00
Marc Mueller
279483ddb0
Import Generator from typing_extensions (2) ( #118989 )
2024-06-06 17:24:22 +02:00
J. Nick Koston
8f94205014
Include a traceback for non-strict event loop blocking detection ( #118620 )
2024-06-02 06:36:25 -04:00
Paulus Schoutsen
9dc580e5de
Add (deep)copy support to read only dict ( #118204 )
2024-05-26 23:05:45 -04:00
Jan Bouwhuis
c616fc036e
Move recorder chunk utils to shared collection utils ( #118065 )
2024-05-24 12:49:39 -10:00
Marc Mueller
dc47792ff2
Update codespell to 2.3.0 ( #118001 )
2024-05-24 08:22:29 +02:00
J. Nick Koston
5a609c34bb
Fix blocking I/O in the event loop when loading timezones ( #117721 )
2024-05-20 11:06:03 +02:00
J. Nick Koston
d06932bbc2
Refactor asyncio loop protection to improve performance ( #117295 )
2024-05-13 07:01:55 +09:00
Marc Mueller
3d700e2b71
Add HassDict implementation ( #103844 )
2024-05-07 10:53:13 +02:00
rlippmann
1120246194
Deprecate relative_time() in favor of time_since() and time_until() ( #111177 )
...
* add time_since/time_until. add deprecation of relative_time
* fix merge conflicts
* Apply suggestions from code review
* Update homeassistant/helpers/template.py
* Update homeassistant/helpers/template.py
* Update homeassistant/helpers/template.py
---------
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-24 11:13:07 +02:00
J. Nick Koston
53a179088f
Add debug mode to catch unsafe thread operations using core helpers ( #115390 )
...
* adjust
* adjust
* fixes
* one more
* test
* debug
* move to config
* cover
* Update homeassistant/core.py
* set debug from RuntimeConfig
* reduce
* fix message
* raise
* Update homeassistant/core.py
* Update homeassistant/core.py
* no flood check for raise
* cover
2024-04-24 03:36:05 +02:00
Sid
895f73d8e4
Enable Ruff A001 ( #115654 )
2024-04-21 23:25:27 +02:00
Sid
d61db732da
Enable Ruff SLOT rules ( #115043 )
2024-04-09 18:57:27 -10:00
J. Nick Koston
f527fd0947
Improve error reporting when an integration tries to create a task in a thread ( #115307 )
2024-04-09 11:11:22 -10:00
Sid
f8b6629b26
Enable Ruff PGH rules ( #115091 )
2024-04-08 15:42:22 +02:00
Marc Mueller
a0e6fd6ec5
Add improved typing for event fire and listen methods ( #114906 )
...
* Add EventType implementation
* Update integrations for EventType
* Change state_changed to EventType
* Fix tests
* Remove runtime impact
* Add tests
* Move to stub file
* Apply pre-commit to stub files
* Fix ruff PYI checks
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-07 13:28:24 -10:00