ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1
2#pragma once
4#include "max17043.h"
5
7
8template<typename... Ts> class SleepAction : public Action<Ts...> {
9 public:
10 explicit SleepAction(MAX17043Component *max17043) : max17043_(max17043) {}
11
12 void play(const Ts &...x) override { this->max17043_->sleep_mode(); }
13
14 protected:
16};
17
18} // namespace esphome::max17043
MAX17043Component * max17043_
Definition automation.h:15
SleepAction(MAX17043Component *max17043)
Definition automation.h:10
void play(const Ts &...x) override
Definition automation.h:12
uint16_t x
Definition tt21100.cpp:5