mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 21:32:21 +01:00
17 lines
383 B
C++
17 lines
383 B
C++
#include "dynamic_lamp_output.h"
|
|
#include "esphome/core/helpers.h"
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace dynamic_lamp {
|
|
|
|
static const char *const TAG = "dynamic_lamp.output";
|
|
|
|
void DynamicLamp::write_state(float state) {
|
|
if (this->parent_->write_state_(this->lamp_, state)) {
|
|
this->state_ = state;
|
|
}
|
|
|
|
} // namespace dynamic_lamp
|
|
} // namespace esphome
|