Erik Montnemery
9b497aebb4
Fix bug in timeout util related to multiple global freezes ( #122466 )
2024-07-29 10:12:18 +02:00
Marc Mueller
156a2427ff
Use aiohttp.ClientTimeout for timeout ( #122458 )
2024-07-23 08:20:04 -05:00
Sid
3142f52a79
Add Ruff refurb rules ( #121701 )
2024-07-10 21:47:40 +02:00
epenet
e812b0e02f
Cleanup unnecessary returns ( #121652 )
2024-07-10 15:11:56 +02:00
J. Nick Koston
89ffee9ad5
Update ulid-transform to 0.10.1 ( #121321 )
2024-07-05 14:07:39 -05:00
epenet
1332e39f9e
Cleanup deprecated json utils ( #121069 )
...
* Cleanup deprectated json utils
* Adjust pylint
2024-07-03 15:57:32 +02:00
Marc Mueller
0e52d149e4
Update voluptuous to 0.15.2 ( #120631 )
...
* Update voluptuous to 0.15.1
* Fix typing issues
* Add type ignores for json result type
* Update voluptuous to 0.15.2
---------
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-07-02 12:57:09 -07:00
J. Nick Koston
001ee0cc0b
Downgrade logging previously reported asyncio block to debug ( #120942 )
2024-07-01 18:26:20 +02:00
J. Nick Koston
04ab74589a
Fix missing f-string in loop util ( #120800 )
2024-06-29 07:01:18 +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
Marc Mueller
dbb27755a4
Update mypy-dev to 1.11.0a5 ( #118519 )
2024-06-02 15:28:24 +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
J. Nick Koston
c368ffffd5
Add async_get_hass_or_none ( #118164 )
2024-05-26 13:38:46 +02:00
Jan Bouwhuis
c616fc036e
Move recorder chunk utils to shared collection utils ( #118065 )
2024-05-24 12:49:39 -10:00
Marc Mueller
5c9c71ba2c
Fix performance regression with SignalType ( #117920 )
2024-05-22 13:58:37 +02:00
Marc Mueller
d44f949b19
Use PEP 695 misc (2) ( #117814 )
2024-05-21 09:45:57 +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
Marc Mueller
f76842d7db
Use PEP 695 for hass_dict annotations ( #117779 )
2024-05-20 10:46:50 +02:00
Marc Mueller
8f0fb4db3e
Use PEP 695 for class annotations (4) ( #117778 )
2024-05-20 10:44:52 +02:00
Marc Mueller
4cf0a3f154
Use PEP 695 for function annotations (3) ( #117660 )
2024-05-18 11:43:32 +02:00
Marc Mueller
25d1ca747b
Use PEP 695 for decorator typing (3) ( #117640 )
2024-05-17 16:27:32 +02:00
Marc Mueller
87bb7ced79
Use PEP 695 for simple type aliases ( #117633 )
2024-05-17 14:42:21 +02:00
J. Nick Koston
6d7345ea1c
Speed up loading YAML ( #117388 )
...
Co-authored-by: Dave T <17680170+davet2001@users.noreply.github.com>
2024-05-14 13:56:42 +02:00
J. Nick Koston
d06932bbc2
Refactor asyncio loop protection to improve performance ( #117295 )
2024-05-13 07:01:55 +09:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
Marc Mueller
3d700e2b71
Add HassDict implementation ( #103844 )
2024-05-07 10:53:13 +02:00
Sid
b456d97e65
Replace pylint protected-access with Ruff SLF001 ( #115735 )
2024-05-06 20:33:26 +02:00
Sid
e662e3b65c
Bump ruff to 0.4.2 ( #116201 )
...
* Bump ruff to 0.4.2
* review comments
2024-04-26 08:48:32 +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
J. Nick Koston
8f1761343e
Only work out job type once when setting up dispatcher ( #116030 )
2024-04-23 22:24:36 +02:00
Sid
3799d20d43
Enable Ruff B905 ( #114197 )
2024-04-14 00:14:26 -05: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
cbbadf6256
Enable Ruff PYI036 ( #115228 )
2024-04-08 08:47:03 -10:00
Sid
025c6f5e2e
Add `__slots__` to NodeClass classes ( #115079 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-04-08 08:44:18 -10: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
Sid
8e98ba7312
Add first batch of Ruff PYI rules ( #115100 )
...
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
2024-04-07 11:30:50 -10:00
J. Nick Koston
164d29d4d9
Remove prepare override in HomeAssistantQueueHandler ( #115064 )
2024-04-06 13:53:36 -10:00
Sid
0d66d298ec
Enable Ruff RET504 ( #114528 )
...
* Enable Ruff RET504
* fix test
* Use noqa instead of cast
* fix sonos RET504
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2024-04-06 11:07:37 +02:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
J. Nick Koston
5038a035bd
Detect blocking module imports in the event loop ( #114488 )
2024-03-30 19:51:31 -10:00
Marc Mueller
443bfee16d
Replace partial annotations ( #114177 )
2024-03-28 18:33:39 +01:00
Marc Mueller
3929273b41
Allow float for int argument type [pylint plugin] ( #114105 )
2024-03-27 11:51:27 +01:00
Marc Mueller
1d2c2d2055
Move SignalTypes to util ( #114236 )
2024-03-27 08:41:44 +01:00
Franck Nijhof
2388e2dda9
Drop Python 3.11 support ( #114220 )
2024-03-26 12:51:14 +01:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Sid
82a60fe8ad
Enable Ruff RSE ( #113695 )
2024-03-18 00:40:38 +01:00