ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
automations.h
Go to the documentation of this file.
1#pragma once
2
4
5#if defined(USE_ESP32) && defined(USE_SENDSPIN_PLAYER) && defined(USE_SENDSPIN_CONTROLLER)
6
9
10namespace esphome::sendspin_ {
11
12template<typename... Ts>
13class EnableStaticDelayAdjustmentAction : public Action<Ts...>, public Parented<SendspinMediaSource> {
14 public:
15 void play(const Ts &...x) override { this->parent_->set_static_delay_adjustable(true); }
16};
17
18template<typename... Ts>
19class DisableStaticDelayAdjustmentAction : public Action<Ts...>, public Parented<SendspinMediaSource> {
20 public:
21 void play(const Ts &...x) override { this->parent_->set_static_delay_adjustable(false); }
22};
23
24} // namespace esphome::sendspin_
25
26#endif
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
uint16_t x
Definition tt21100.cpp:5