homeassistant-elasticsearch
homeassistant-elasticsearch copied to clipboard
[2.0] Entity / Device Data is potentially old by publish time
Formatting is currently done during publish time instead of as the poller and listener add state updates to the publish queue.
As formatting enriches the state update with extended details about the entity, related floors, areas, and device, we should ensure that enrichment occurs as quickly as possible and not 1-10 minutes later.
We should likely move formatting to occur as part of the poller/listener adding an item to the queue so that that enrichment happens immediately instead of during publish time.
@legrego thoughts on fixing this in my current testing pr vs fixing later?
@strawgate I'd prefer if we handle this in its own PR