mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-19 20:53:26 +02:00
8e75980ebd
* 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
26 lines
559 B
C++
26 lines
559 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/binary_sensor/binary_sensor.h"
|
|
|
|
namespace esphome {
|
|
namespace status {
|
|
|
|
class StatusBinarySensor : public binary_sensor::BinarySensor, public Component {
|
|
public:
|
|
void loop() override;
|
|
|
|
void setup() override;
|
|
void dump_config() override;
|
|
|
|
float get_setup_priority() const override { return setup_priority::DATA; }
|
|
|
|
bool is_status_binary_sensor() const override { return true; }
|
|
|
|
protected:
|
|
bool last_status_{false};
|
|
};
|
|
|
|
} // namespace status
|
|
} // namespace esphome
|