mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add id() for restoring global (#2454)
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user