-
- Downloads
Only process logbook timestamps for events we will keep (#36792)
* Only process logbook timestamps for events we will keep Since we group by minute we were previously processing every timestamp. We can avoid this by making all the minute checks use the unprocessed datetime since the groupings will be the same regardless of timezone. This reduces the number of datetime object recreations by at least an order of magnitude.
Showing
- homeassistant/components/logbook/__init__.py 12 additions, 7 deletionshomeassistant/components/logbook/__init__.py
- tests/components/alexa/test_init.py 5 additions, 4 deletionstests/components/alexa/test_init.py
- tests/components/automation/test_init.py 4 additions, 3 deletionstests/components/automation/test_init.py
- tests/components/homekit/test_init.py 3 additions, 3 deletionstests/components/homekit/test_init.py
- tests/components/logbook/test_init.py 48 additions, 14 deletionstests/components/logbook/test_init.py
- tests/components/script/test_init.py 4 additions, 3 deletionstests/components/script/test_init.py
Loading
Please register or sign in to comment