Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
21 lines
455 B
C++
21 lines
455 B
C++
#include "gp8403_output.h"
|
|
|
|
#include "esphome/core/log.h"
|
|
|
|
namespace esphome {
|
|
namespace gp8403 {
|
|
|
|
static const char *const TAG = "gp8403.output";
|
|
|
|
void GP8403Output::dump_config() {
|
|
ESP_LOGCONFIG(TAG,
|
|
"GP8403 Output:\n"
|
|
" Channel: %u",
|
|
this->channel_);
|
|
}
|
|
|
|
void GP8403Output::write_state(float state) { this->parent_->write_state(state, this->channel_); }
|
|
|
|
} // namespace gp8403
|
|
} // namespace esphome
|