Artur Pragacz
840e0d1388
Clean up ModuleWrapper from loader ( #148488 )
2025-07-16 15:19:22 +02:00
Erik Montnemery
510fd09163
Allow core integrations to describe their conditions ( #147529 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
2025-07-04 16:03:42 +02:00
Erik Montnemery
a3b03caead
Deduce integration from module in loader.async_get_issue_tracker ( #148017 )
2025-07-04 07:55:20 +02:00
Erik Montnemery
1fb587bf03
Allow core integrations to describe their triggers ( #147075 )
...
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com >
2025-06-25 17:35:15 +01:00
Marc Mueller
2c13c70e12
Update ruff to 0.12.0 ( #147106 )
2025-06-19 20:39:09 +02:00
Robert Resch
199a274c80
Remove deprecated hass.helpers ( #143514 )
2025-04-23 17:24:25 +02:00
Jan-Philipp Benecke
f22eca3d9e
Remove deprecated hass.components ( #141947 )
2025-04-23 14:04:36 +02:00
Artur Pragacz
efbb94a1b1
Use common helper function in resolve integration dependencies ( #140989 )
...
Extract to helper function in resolve integration dependencies
2025-04-10 17:41:06 +02:00
Erik Montnemery
feff5355c8
Mark Integration with @final ( #142057 )
2025-04-02 15:05:43 +02:00
Artur Pragacz
4f25296c50
Improve dependencies resolution ( #138502 )
...
* Improve dependencies resolution
* Improve tests
* Better docstrings
* Fix comment
* Improve tests
* Improve logging
* Address feedback
* Address feedback
* Address feedback
* Address feedback
* Address feedback
* Simplify error handling
* small log change
* Add comment
* Address feedback
* shorter comments
* Add test
2025-03-11 10:12:23 +01:00
J. Nick Koston
19704cff04
Fix grammar in loader comments ( #139276 )
...
https://github.com/home-assistant/core/pull/139270#discussion_r1970315129
2025-02-25 20:10:54 +01:00
J. Nick Koston
a1d1f6ec97
Fix race in async_get_integrations with multiple calls when an integration is not found ( #139270 )
...
* Fix race in async_get_integrations with multiple calls when an integration is not found
* Fix race in async_get_integrations with multiple calls when an integration is not found
* Fix race in async_get_integrations with multiple calls when an integration is not found
* tweaks
* tweaks
* tweaks
* restore lost comment
* tweak test
* comment cache
* improve test
* improve comment
2025-02-25 19:08:53 +01:00
Ville Skyttä
40eb8b91cc
Adjust to recommended propcache.api import paths ( #136150 )
2025-01-21 10:58:22 +01:00
epenet
5df7092f41
Improve formatting in core files ( #135256 )
...
* Adjust core files formatting
* Adjust translations script
2025-01-10 09:08:37 +01:00
J. Nick Koston
ff4ba553c4
Sort integration platforms preload list ( #133905 )
...
* Sort integration platforms preload list
https://github.com/home-assistant/core/pull/133856#discussion_r1895385026
* sort
* Sort them all
---------
Co-authored-by: Franck Nijhof <frenck@frenck.nl >
2024-12-23 23:38:59 +01:00
J. Nick Koston
29fa40a5cf
Add backup the list of integrations platforms to preload ( #133856 )
...
`backup` is now at the top of the startup time list. This will help reduce it.
2024-12-22 23:07:05 -05:00
Franck Nijhof
9d387acb97
Ensure custom integrations are assigned the custom IQS scale ( #131795 )
2024-11-28 12:25:16 +01:00
epenet
c7485b94d5
Use breaks_in_ha_version in report_usage ( #131137 )
...
* Use breaks_in_ha_version in report_usage
* Revert behavior change
2024-11-23 18:58:24 +01:00
epenet
5539228ba2
Split async_get_issue_tracker loader function ( #130856 )
2024-11-20 21:41:38 +01:00
epenet
a3b0909e3f
Add new frame helper to better distinguish custom and core integrations ( #130025 )
...
* Add new frame helper to clarify options available
* Adjust
* Improve
* Use report_usage in core
* Add tests
* Use is/is not
Co-authored-by: J. Nick Koston <nick@koston.org >
* Use enum.auto()
---------
Co-authored-by: J. Nick Koston <nick@koston.org >
2024-11-07 18:23:35 +01:00
Paulus Schoutsen
28ff138370
Simplify custom component loading ( #128813 )
2024-10-20 09:47:27 +02:00
Petar Petrov
1ff1b82fc7
Mark custom components that overwrite core ( #127937 )
2024-10-16 09:28:19 +02:00
Jan-Philipp Benecke
b56fa7b406
Extend deprecation period for hass.helpers by 6 months ( #128038 )
2024-10-09 14:16:56 -04:00
Franck Nijhof
20e3291eb9
Revert Alexa Media Player block ( #127553 )
2024-10-04 13:13:18 +02:00
J. Nick Koston
0f29fd3e10
Switch to using fast cached_property implementation in propcache ( #127339 )
2024-10-03 13:11:02 -05:00
Joost Lekkerkerker
4aedf662e9
Fix AMP block ( #127424 )
...
Fix Alexa block
2024-10-03 14:15:27 +02:00
Joost Lekkerkerker
0eec6447e4
Block Alexa Media Player v4.13.3 ( #127412 )
2024-10-03 13:43:48 +02:00
Erik Montnemery
e8fd97e355
Fix stale docstring in loader.USBMatcher ( #127094 )
2024-09-30 12:42:04 +02:00
Erik Montnemery
15e5851383
Extend deprecation period for hass.components by 6 months ( #125659 )
2024-09-10 20:38:45 +02:00
Erik Montnemery
debebcfd25
Improve language in loader error messages ( #122387 )
2024-07-22 15:32:36 +02:00
Franck Nijhof
42dcd693d5
Block variable <=3.4.4 custom integration from breaking the recorder ( #121670 )
2024-07-10 11:30:16 +02:00
Franck Nijhof
e9b7cc1eba
Block places <=2.7.0 custom integration from breaking the recorder ( #121662 )
2024-07-10 10:24:44 +02:00
Franck Nijhof
65e03f952a
Block icloud3 custom integration from breaking the recorder ( #121658 )
2024-07-10 09:47:15 +02:00
Erik Montnemery
904b89df80
Allow importing typing helper in core files ( #119377 )
...
* Allow importing typing helper in core files
* Really fix the circular import
* Update test
2024-06-11 13:48:12 +02:00
Erik Montnemery
f896c7505b
Improve async_get_issue_tracker for custom integrations ( #118016 )
2024-05-24 09:55:05 +02:00
J. Nick Koston
c5cc9801a6
Cache serialize of manifest for loaded integrations ( #117965 )
...
* Cache serialize of manifest for loaded integrations
The manifest/list and manifest/get websocket apis
are called frequently when moving around in the UI.
Since the manifest does not change we can make
the the serialized version a cached property
* reduce
* reduce
2024-05-23 10:52:05 -04:00
J. Nick Koston
d11003ef12
Block older versions of custom integration mydolphin_plus since they cause crashes ( #117751 )
2024-05-20 09:45:52 +02:00
Marc Mueller
4cf0a3f154
Use PEP 695 for function annotations (3) ( #117660 )
2024-05-18 11:43:32 +02:00
Marc Mueller
15618a8a97
Use HassKey for loader ( #116999 )
2024-05-07 18:37:01 +02:00
Sid
2cc916db6d
Replace pylint broad-except with Ruff BLE001 ( #116250 )
2024-05-07 14:00:27 +02:00
J. Nick Koston
f3b08e89a5
Small speed ups to async_get_integration ( #116900 )
2024-05-06 19:08:33 +02:00
J. Nick Koston
ee7f818fcd
Block dreame_vacuum versions older than 1.0.4 ( #116673 )
2024-05-03 12:17:01 +02:00
J. Nick Koston
fb5fc136e8
Avoid falling back to event loop import on ModuleNotFound ( #115404 )
2024-04-11 16:32:47 -10:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport ( #114239 )
2024-04-04 11:24:26 +02:00
J. Nick Koston
b12c69accb
Fix memory leak when importing a platform fails ( #114602 )
...
* Fix memory leak when importing a platform fails
re-raising ImportError would trigger a memory leak
* fixes, coverage
* Apply suggestions from code review
2024-04-01 21:36:48 -04:00
Jan-Philipp Benecke
d5da0a053b
Deprecate hass.helpers ( #114484 )
...
* Deprecate hass.helpers
* Patch
* Patch _REPORTED_INTEGRATIONS set in test
* Fix test
* Update version
2024-03-31 11:44:11 +02: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
J. Nick Koston
d0708b5b32
Fix grammar in async_get_platform comment ( #113948 )
...
https://github.com/home-assistant/core/pull/113917#pullrequestreview-1951203739
2024-03-21 15:10:47 -04:00
J. Nick Koston
3b66328591
Add a fast path for async_get_platform ( #113917 )
2024-03-21 09:34:33 +01:00
J. Nick Koston
c615b52840
Refactor integration startup time to show wall clock time ( #113707 )
...
* Refactor setup time tracking to exclude time waiting on other operations
We now exclude the import time and th time waiting on
base platforms to setup from the setup times
* tweak
* tweak
* tweak
* tweak
* adjust
* fixes
* fixes
* preen
* preen
* tweak
* tweak
* adjust
* tweak
* reduce
* do not count integrtion platforms against their parent integration
* handle legacy tts platforms
* stt as well
* one more wait
* use the same pattern in all the legacy
* fix tts and stt legacy
* fix
* fix
* reduce
* preen
* entity comp does not wait for platforms
* scene blocks as well
* fix test
* test fixes
* coverage
* coverage
* coverage
* fix test
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update tests/test_setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* Update homeassistant/setup.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
* strip
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* strip WAIT_PLATFORM_INTEGRATION
* remove complexity
* Apply suggestions from code review
* no longer works that way
* fixes
* fixes
* fixes
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2024-03-18 21:45:34 -04:00