#include "tm1638_switch_led.h" #include "esphome/core/log.h" namespace esphome { namespace tm1638 { static const char *const TAG = "tm1638.led"; void TM1638SwitchLed::write_state(bool state) { tm1638_->set_led(led_, state); publish_state(state); } void TM1638SwitchLed::dump_config() { LOG_SWITCH("", "TM1638 LED", this); ESP_LOGCONFIG(TAG, " LED: %d", led_); } } // namespace tm1638 } // namespace esphome