Cleanup dashboard JS (#491)
* Cleanup dashboard JS * Add vscode * Save start_mark/end_mark * Updates * Updates * Remove need for cv.nameable It's a bit hacky but removes so much bloat from integrations * Add enum helper * Document APIs, and Improvements * Fixes * Fixes * Update PULL_REQUEST_TEMPLATE.md * Updates * Updates * Updates
This commit is contained in:
1 parent
6682c43dfa
commit
8e75980ebd
359 files changed
+4395
-4223
No files matched your search
@@ -6,8 +6,8 @@ namespace template_ {
|
||||
|
||||
static const char *TAG = "template.switch";
|
||||
|
||||
TemplateSwitch::TemplateSwitch(const std::string &name)
|
||||
: switch_::Switch(name), Component(), turn_on_trigger_(new Trigger<>()), turn_off_trigger_(new Trigger<>()) {}
|
||||
TemplateSwitch::TemplateSwitch() : turn_on_trigger_(new Trigger<>()), turn_off_trigger_(new Trigger<>()) {}
|
||||
|
||||
void TemplateSwitch::loop() {
|
||||
if (!this->f_.has_value())
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user