mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 03:58:41 +00:00
21 lines
440 B
C++
21 lines
440 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;
|
|
|
|
bool is_status_binary_sensor() const override { return true; }
|
|
};
|
|
|
|
} // namespace status
|
|
} // namespace esphome
|