pnbruckner / ha-composite-tracker

Home Assistant Composite Device Tracker
The Unlicense
133 stars 11 forks source link

Restore before checking input entities at startup #76

Closed pnbruckner closed 4 months ago

pnbruckner commented 4 months ago

Input entities were being checked at startup before restore process started. This could cause an extremely out-of-date input entity to change the composite's state to a really old value/location and abort the restore process.

In order to properly reject out-of-date inputs, the restore process should happen first, which is what the PR does.

Fixes #75