mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 06:58:11 +01:00
Add id() for restoring global (#2454)
This commit is contained in:
parent
955c96731e
commit
22e3bc7cfe
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ template<class C, typename... Ts> class GlobalVarSetAction : public Action<Ts...
|
|||
};
|
||||
|
||||
template<typename T> T &id(GlobalsComponent<T> *value) { return value->value(); }
|
||||
template<typename T> T &id(RestoringGlobalsComponent<T> *value) { return value->value(); }
|
||||
|
||||
} // namespace globals
|
||||
} // namespace esphome
|
||||
|
|
Loading…
Reference in a new issue