mirror of
https://github.com/esphome/esphome.git
synced 2024-12-24 16:58:07 +01:00
Add id() for restoring global (#2454)
This commit is contained in:
parent
955c96731e
commit
22e3bc7cfe
@ -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 New Issue
Block a user