mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 11:44:13 +01:00
22 lines
518 B
C++
22 lines
518 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; }
|
|
};
|
|
|
|
} // namespace status
|
|
} // namespace esphome
|