ESPHome 2025.5.0
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1
2#pragma once
4#include "max17043.h"
5
6namespace esphome {
7namespace max17043 {
8
9template<typename... Ts> class SleepAction : public Action<Ts...> {
10 public:
11 explicit SleepAction(MAX17043Component *max17043) : max17043_(max17043) {}
12
13 void play(Ts... x) override { this->max17043_->sleep_mode(); }
14
15 protected:
17};
18
19} // namespace max17043
20} // namespace esphome
MAX17043Component * max17043_
Definition automation.h:16
SleepAction(MAX17043Component *max17043)
Definition automation.h:11
void play(Ts... x) override
Definition automation.h:13
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
uint16_t x
Definition tt21100.cpp:5