epenet
9add3a6c9b
Add ability to pass integration domain to report_usage ( #130705 )
...
* Add ability to pass integration domain to report_usage
* Adjust
* Fix
* Add tests
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Update test_frame.py
* Finish tests
* Docstring
* Replace logger warning with report_usage
* Improve
* docstring
* Improve tests
* Adjust docstring for exclude_integrations
* Fix behavior and improve tests
2024-11-21 16:01:36 +01:00
epenet
deeb55ac50
Add ability to set HA breaking version in report_usage ( #130858 )
...
* Add ability to set breaking version in report_usage
* Adjust tests
* Adjust test
* Adjust tests
* Rename breaks_in_version => breaks_in_ha_version
2024-11-20 21:41:57 +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
epenet
ef767c2b9f
Improve tests for frame helper ( #130046 )
...
* Improve tests for frame helper
* Improve comments
* Add ids
* Apply suggestions from code review
2024-11-07 17:35:58 +01:00
epenet
9f41133bbc
Add missing argument type to core tests ( #119667 )
2024-06-14 08:42:01 +02:00
epenet
fce4fc663e
Fix import-outside-toplevel pylint warnings in core tests ( #119394 )
2024-06-11 16:10:34 +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
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
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
1fb9cfe37e
Speed up the frame helper ( #112562 )
2024-03-06 20:54:09 -10:00
J. Nick Koston
6421a08ba8
Avoid expensive inspect calls in config validators ( #112085 )
...
* Avoid expensive inspect calls in config validators
inspect has a performance problem https://github.com/python/cpython/issues/92041
We now avoid calling inspect unless we are going to log
* remove unused
* reduce
* get_integration_logger
2024-03-02 21:50:35 -05:00
Jan-Philipp Benecke
bc6b4d01c8
Deprecate `hass.components` and log warning if used inside custom component ( #111508 )
...
* Deprecate @bind_hass and log error if used inside custom component
* Log also when accessing `hass.components`
* Log warning only when `hass.components` is used
* Change version
* Process code review
2024-02-29 12:25:46 +01:00
Erik Montnemery
dce5099d92
Use loader.async_suggest_report_issue in frame helper ( #101461 )
2023-10-05 19:52:26 +02:00
Erik Montnemery
7e39acda37
Minor improvement of frame helper ( #101387 )
...
* Minor improvement of frame helper
* Add new custom integration for testing
* Make IntegrationFrame kw_only
2023-10-04 21:43:00 +02:00
Erik Montnemery
ab2de18f8f
Refactor frame.get_integration_frame ( #101322 )
2023-10-03 19:21:27 +02:00
epenet
5f25b71df7
Add type hints to core tests ( #88478 )
2023-02-20 11:42:56 +01:00
epenet
b7b82b1e3f
Add more type hints to conftest.py ( #87842 )
...
* Add more type hints in conftest.py
* Adjust stop_hass
* Adjust mock_integration_frame
* Adjust pylint plugin
2023-02-11 13:48:53 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
Dave T
7e3d87a146
Increase helpers.frame test coverage ( #65137 )
...
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2022-02-18 00:05:38 -08:00
epenet
b8b4855b8e
Prevent log flooding in frame helper ( #61085 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-06 15:26:31 -08:00
Ville Skyttä
7d03b02192
Spelling fixes ( #51642 )
2021-06-11 13:35:03 +02:00
Paulus Schoutsen
ff94e920e4
Do not use AsyncTrackStates ( #47255 )
2021-03-11 23:18:09 -08:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
J. Nick Koston
444df4a7d2
Use the shared zeroconf instance when attempting to create another Zeroconf instance ( #38744 )
2020-08-12 16:08:33 +02:00
Martin Hjelmare
2a120d9045
Patch aiohttp client session close ( #34769 )
...
* Patch aiohttp client session close
* Add test
* Restore close regardless of auto_cleanup
* Close session instead of detaching and do not restore
* Delint test
* Add frame helper
* Use frame helper
* Test warning log when closing session
* Clean up
* Correct docstring
* Do not change shutdown
* Fix tests
2020-05-13 09:58:33 +02:00