snarky-snark / home-assistant-variables

A custom Home Assistant component for declaring and setting generic variable entities dynamically.
Apache License 2.0
278 stars 16 forks source link

Restore: true recorder dependency? #93

Closed lloyda closed 1 year ago

lloyda commented 1 year ago

Not really an issue, just a question.

If I have a variable with restore: true, does it rely on that variable being included in recorder?

snarky-snark commented 1 year ago

The variable entities use the same API for this as any generic Home Assistant entity. As a result, the answer should be the same for variables as they are for, say, input booleans.

That said, I think the answer is no. Restore state is saved separately from the HA database to my knowledge.