additional components, clean-up

This commit is contained in:
HB
2020-09-29 17:29:47 +02:00
parent fce81d14a9
commit 54c7dabb67
20 changed files with 259 additions and 12 deletions
@@ -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