1
0
mirror of https://github.com/home-assistant/core.git synced 2025-08-19 02:10:12 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
Joost Lekkerkerker
6bb4e7d62c Bump ruff to 0.3.4 ()
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
32c64855b2 Fix duplicate events in live logbook () 2024-03-19 09:17:23 -10:00
Marc Mueller
32f3f46542 Add empty line after module docstring (2) [tests.components] () 2024-03-08 19:16:21 +01:00
J. Nick Koston
0d4c82b54d Convert Integration platforms processors where nothing is awaited to callbacks ()
Convert Integration platforms processors where nothing is awaited callbacks
2024-02-17 20:49:47 -05:00
Franck Nijhof
3e85a29b86 Move overlapping pylint rules to ruff, disable mypy overlap () 2023-06-27 17:42:46 +02:00
J. Nick Koston
5114a1400f Ensure logbook still responds if describe event throws ()
* Ensure logbook still responds if describe event throws

If describe fails, the logbook stream should not collapse

* Ensure logbook still responds if describe event throws

If describe fails, the logbook stream should not collapse
2023-04-24 22:22:53 -04:00
J. Nick Koston
170a13302c Reduce overhead to store context ids in the database () 2023-03-08 14:51:45 -10:00
epenet
d65dff3f9e Adjust entity registry access in tests (2) () 2023-03-01 16:23:36 +01:00
J. Nick Koston
93e37243f6 Fix logbook test that failed to exclude EVENT_HOMEASSISTANT_FINAL_WRITE () 2023-02-21 16:22:44 -06:00
Franck Nijhof
f67ebcade1 Enable Ruff SIM201 () 2023-02-15 14:43:02 +01:00
Erik Montnemery
4ca0a24f87 Increase test scope of MariaDB + PostgreSQL tests ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-13 15:58:13 -06:00
epenet
ea11a30a35 Add type hints to integration tests (part 13) () 2023-02-13 14:38:37 +01:00
J. Nick Koston
00118a6f96 Speed up live history setup if there is no pending data to commit () 2023-01-30 19:00:34 +01:00
Franck Nijhof
62dcbe5258 Enable Ruff PT001 () 2023-01-26 18:05:05 +01:00
Franck Nijhof
e50a531cd9 Code styling tweaks to the tests - Part 2 ()
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2023-01-26 01:23:53 +01:00
J. Nick Koston
5279535046 Fix live logbook stalling when there are no historical events with a high commit interval ()
* Force live logbook to send an empty message to indicate no results

Since the sync task can take a while if the recorder is
busy, the logbook will appear to hang if we do not send
the first partial message even if its empty.

This work is in preparation for a higher database
commit interval where this issue is most obvious.

The historical only path did not have this issue because
it never had to wait for the db sync.

* update tests
2023-01-17 21:06:37 -05:00
Marc Mueller
63d519c1a8 Spelling updates () 2022-11-28 16:51:43 +01:00
J. Nick Koston
11a55d6d4c Fix flapping logbook tests () 2022-11-07 11:41:02 +01:00
Erik Montnemery
31a787558f Ensure recorder test fixture is setup before hass fixture ()
* Ensure recorder test fixture is setup before hass fixture

* Adjust more tests
2022-10-19 07:58:47 +02:00
Erik Montnemery
e852c9b012 Fix logbook tests ()
* Fix logbook tests

* Correct tests

* Improve tests
2022-10-13 17:34:45 +02:00
J. Nick Koston
14611f9b5c Fix race in logbook websocket test () 2022-09-13 16:40:08 -04:00
J. Nick Koston
fcb6888f87 Start logbook stream faster ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-09-09 17:16:02 -05:00
Martin Hjelmare
c05905ebda Remove callback decorator from coroutine functions ()
* Remove callback decorator from coroutine functions

* Remove some more callback decorators
2022-07-22 19:09:02 +02:00
J. Nick Koston
720768560d Fix devices missing in logbook when all requested entities are filtered () 2022-06-28 08:44:06 +02:00
J. Nick Koston
f29cc33fa0 Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL with logbook ()
* Fix selecting entity_ids and device_ids in events with MySQL and PostgreSQL

Fixes 

* add cover
2022-06-24 15:43:35 +02:00
J. Nick Koston
e4f354998d Filter out forced updates in live logbook when the state has not changed () 2022-06-10 14:04:43 -07:00
J. Nick Koston
0b62944148 Mark counter domain as continuous to exclude it from logbook () 2022-06-05 21:25:26 -10:00
J. Nick Koston
457c7a4ddc Fix incompatiblity with live logbook and google_assistant () 2022-06-05 19:06:49 -10:00
J. Nick Koston
6b2e5858b3 Send an empty logbook response when all requested entity_ids are filtered away () 2022-06-05 21:14:47 -07:00
J. Nick Koston
5d2326386d Fix logbook spinner never disappearing when all entities are filtered () 2022-06-01 12:33:46 +02:00
J. Nick Koston
35ee4ad55b Prevent live logbook from sending state changed events when we only want device ids () 2022-05-31 13:08:04 -07:00
J. Nick Koston
587fd05603 Make logbook inherit the recorder filter () 2022-05-30 17:34:32 -07:00
J. Nick Koston
a43d47fa0b Escape % and _ in history/logbook entity_globs, and use ? as _ ()
Co-authored-by: pyos <pyos100500@gmail.com>
2022-05-27 14:38:29 -07:00
J. Nick Koston
bfa7693d18 Fixes for logbook filtering and add it to the live stream () 2022-05-25 15:17:08 -10:00
J. Nick Koston
1c25e1d7b1 Add metadata to logbook live stream websocket endpoint () 2022-05-23 22:37:47 -07:00
J. Nick Koston
9d95b9ab05 Chunk large logbook queries and add an end_time to the api so we stop sending events () 2022-05-23 15:40:00 -07:00
J. Nick Koston
0248a8710f Always pass the source of the trigger for logbook context messages () 2022-05-23 13:35:45 -05:00
J. Nick Koston
9c3f949165 Add live streaming logbook websocket endpoint ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2022-05-22 14:57:54 -05:00