Paul Bottein
76a8f0d52b
Expose selected state attributes in the logbook ( #174808 )
2026-07-01 13:25:28 +02:00
epenet
397c28b9b6
Use DOMAIN constant in test (async_setup_component h-n) ( #173015 )
2026-06-08 16:28:17 +02:00
epenet
f459946e86
Rename domain variable in tests ( #172575 )
2026-06-01 06:37:40 +02:00
Franck Nijhof
88f6b7159a
Fix line length violations in tests/components j-l ( #170961 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-05-17 17:16:11 -04:00
Franck Nijhof
1e8a9ded70
Refactor pylint plugins into pylint_home_assistant package ( #170521 )
2026-05-13 17:12:19 -04:00
Petro31
4d578b6c98
Remove legacy switch template entities ( #169730 )
2026-05-07 14:58:27 +02:00
Erik Montnemery
27d8c7b93e
Improve logbook parent context handling ( #167036 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-04-14 07:48:33 +02:00
Erik Montnemery
3b57cab6b4
Revert "Allow opening sockets in logbook tests" ( #155899 )
2025-11-06 09:20:28 +01:00
Erik Montnemery
6dc655c3b4
Allow opening sockets in logbook tests ( #155840 )
2025-11-05 14:58:21 +01:00
epenet
0e263aa427
Standardize homeassistant imports in full-CI tests ( #136735 )
2025-01-28 13:10:20 -05:00
Erik Montnemery
bbce183faf
Deprecate dt_util.utc_to_timestamp ( #131787 )
2024-11-28 17:00:20 +01:00
epenet
02cb6a6af7
Force root import of references from other components ( #125816 )
...
* Force root import of references from other components
* Improve
* Adjust
* Tweak exceptions
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Another
* Adjust
* More
* Ignore violations in test
* Improve
2024-09-16 11:28:42 +02:00
epenet
02139fcca6
Add missing hass type hint in component tests (l) ( #124220 )
2024-08-19 15:36:23 +02:00
epenet
ecf22e4c4f
Improve type hints in logbook tests ( #123652 )
2024-08-12 13:29:38 +02:00
J. Nick Koston
b09dd95dbd
Improve alignment of live logbook and historical logbook models ( #123070 )
...
* Improve alignment of live logbook and historical logbook models
- Make EventAsRow as NamedType which is better aligned with
sqlalchemy Row
- Use getitem to fetch results for both Row and EventAsRow
since its an order of magnitude faster fetching sqlalchemy
Row object values.
* final
* fix
* unused
* fix more tests
* cleanup
* reduce
* tweak
2024-08-04 23:09:10 +02:00
epenet
e734971d33
Enable collections-named-tuple (PYI024) rule in ruff ( #123019 )
2024-08-02 15:28:32 +02:00
epenet
242ee04642
Improve type hints in tests (i-p) ( #118380 )
2024-05-30 08:47:08 +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
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
J. Nick Koston
0d4c82b54d
Convert Integration platforms processors where nothing is awaited to callbacks ( #110825 )
...
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05:00
J. Nick Koston
bf8f78c041
Fix flakey logbook tests ( #105111 )
2023-12-06 08:15:48 +01:00
Aarni Koskela
706add4a57
Switch formatting from black to ruff-format ( #102893 )
...
Co-authored-by: Franck Nijhof <git@frenck.dev >
2023-11-27 14:38:59 +01:00
Ville Skyttä
e7b6037419
Remove unnnecessary pylint configs from components [e-l]* ( #99004 )
2023-08-25 09:46:34 +02:00
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap ( #94359 )
2023-06-27 17:42:46 +02:00
J. Nick Koston
b76551cf35
Reduce number of columns selected for logbook ( #91718 )
2023-04-22 14:25:22 +02:00
J. Nick Koston
4080d68489
Fix logbook tests failing because time was not url encoded correctly ( #89770 )
2023-03-15 15:29:41 -10:00
J. Nick Koston
170a13302c
Reduce overhead to store context ids in the database ( #88942 )
2023-03-08 14:51:45 -10:00
epenet
d65dff3f9e
Adjust entity registry access in tests (2) ( #88960 )
2023-03-01 16:23:36 +01:00
epenet
ea11a30a35
Add type hints to integration tests (part 13) ( #87998 )
2023-02-13 14:38:37 +01:00
Franck Nijhof
62dcbe5258
Enable Ruff PT001 ( #86730 )
2023-01-26 18:05:05 +01:00
epenet
b4dd1b8cb2
Rename logbook constant ( #86464 )
2023-01-23 18:00:25 +02:00
Marc Mueller
d7dda6bee5
Update python version used for pylint [Py310] ( #86414 )
...
* Update python version used for pylint linting [Py310]
* Import Callable from collections.abc [Py310]
* Use builtin anext [Py310]
2023-01-23 07:56:15 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
J. Nick Koston
b8a1537b58
Improve performance of fetching and storing history and events with the database ( #84870 )
2023-01-02 13:26:08 -10:00
J. Nick Koston
43745dbc6c
Pass explict time in logbook tests ( #81725 )
...
The CI sets the timezone to US/Pacific and the logbook
uses start_of_local_day when called without a time.
We now call the logbook api with a specific time to
avoid them being out of sync since the test would
fail at CET 8:55am on Mon Nov 7th 2022 (and probably
other dates)
2022-11-07 16:26:38 +01:00
Erik Montnemery
31a787558f
Ensure recorder test fixture is setup before hass fixture ( #80528 )
...
* Ensure recorder test fixture is setup before hass fixture
* Adjust more tests
2022-10-19 07:58:47 +02:00
J. Nick Koston
a8349a4866
Adjust entity filters to make includes stronger than excludes ( #74080 )
...
* Adjust entity filters to make includes stronger than excludes
Fixes #59080
* adjust test for stronger entity glob includes
* sync with docs
2022-06-28 11:42:51 -05:00
J. Nick Koston
0b62944148
Mark counter domain as continuous to exclude it from logbook ( #73101 )
2022-06-05 21:25:26 -10:00
J. Nick Koston
5b31414225
Fix misalignments between sql based filtering with the entityfilter based filtering ( #72936 )
2022-06-02 20:52:53 -07:00
J. Nick Koston
c6e56c26b3
Fix logbook not setting up with an recorder filter that has empty fields ( #72869 )
2022-06-01 22:12:00 -07:00
J. Nick Koston
bfa7693d18
Fixes for logbook filtering and add it to the live stream ( #72501 )
2022-05-25 15:17:08 -10:00
J. Nick Koston
9c3f949165
Add live streaming logbook websocket endpoint ( #72258 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2022-05-22 14:57:54 -05:00
J. Nick Koston
d459a5c66e
Include context state in logbook responses to improve localization ( #72222 )
...
* Include context state in logbook responses to improve localization
* reduce payload, dont send context_event_type if sending context_state
2022-05-20 07:46:01 -07:00
J. Nick Koston
f06f94ea85
Add coverage to ensure we reject 0 length logbook filters ( #72124 )
2022-05-19 08:59:06 -07:00
J. Nick Koston
272e65f56d
Fix device_ids being filtered when entities also specified in the logbook ( #72122 )
2022-05-18 23:27:31 -05:00
J. Nick Koston
c4fc84ec1e
Add support for selecting device_ids from the logbook ( #72039 )
...
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io >
2022-05-18 01:58:30 -05:00
Paulus Schoutsen
5433c0a535
Make sure empty get_events results is always a list ( #72021 )
2022-05-17 10:43:58 -07:00
J. Nick Koston
089eb9960a
Reduce logbook websocket payload size and parse json attributes via the DBM ( #71895 )
2022-05-15 20:48:57 -07:00
J. Nick Koston
663f6f8340
Complete refactoring of logbook humanify ( #71830 )
2022-05-13 14:56:16 -07:00