J. Nick Koston
60ab360fe7
Avoid bytes to string to bytes conversion in websocket api ( #108139 )
2024-01-16 21:37:34 +01:00
J. Nick Koston
3d595fff13
Avoid duplicate timestamp conversions for websocket api and recorder ( #108144 )
...
* Avoid duplicate timestamp conversions for websocket api and recorder
We convert the time from datetime to timestamps one per
open websocket connection and the recorder for every
state update. Only do the conversion once since its
~30% of the cost of building the state diff
* more
* two more
* two more in live history
2024-01-16 14:05:01 +01:00
J. Nick Koston
50f2c41145
Avoid db hit and executor job for impossible history queries ( #104724 )
2023-11-29 11:20:22 -07:00
Marc Mueller
2618bfc073
Use EventType for state changed [core] ( #97115 )
2023-07-23 18:10:03 -05:00
Harvey
bf4559719a
History API entity_id validation ( #90067 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-04-14 09:41:54 -10:00
rlippmann
f5911bcad6
Add slots to dataclasses in default_config ( #91410 )
...
* add dataclass slots to default config items
* remove slots from sun mixing
2023-04-14 14:22:39 -04:00
J. Nick Koston
d0d4ab6056
Require a list of entity ids when fetching history ( #90992 )
2023-04-08 16:14:44 -10:00
J. Nick Koston
977a07de13
Generate large history responses in the executor ( #89606 )
2023-03-12 21:32:26 -04:00
J. Nick Koston
0b0e977ce9
Remove history use_include_order configuration option ( #86365 )
2023-01-22 17:43:05 +01:00
J. Nick Koston
5ff0479c16
Split history websocket API into its own file ( #86364 )
2023-01-21 18:45:00 -10:00