additional components, clean-up
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include "esphome.h"
|
||||
#include "esphome/core/log.h"
|
||||
#include "empty_custom_switch.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace empty_custom_switch {
|
||||
|
||||
static const char *TAG = "empty_custom_switch.switch";
|
||||
|
||||
void EmptyCustomSwitch::setup() {
|
||||
|
||||
@@ -13,5 +14,9 @@ void EmptyCustomSwitch::write_state(bool state) {
|
||||
|
||||
}
|
||||
|
||||
void EmptyCustomSwitch::dump_config(){
|
||||
ESP_LOGCONFIG(TAG, "Empty custom switch");
|
||||
}
|
||||
|
||||
} //namespace empty_custom_switch
|
||||
} //namespace esphome
|
||||
@@ -10,6 +10,7 @@ class EmptyCustomSwitch : public switch_::Switch, public Component {
|
||||
public:
|
||||
void setup() override;
|
||||
void write_state(bool state) override;
|
||||
void dump_config() override;
|
||||
};
|
||||
|
||||
} //namespace empty_custom_switch
|
||||
|
||||
Reference in New Issue
Block a user