mirror of
https://github.com/esphome/esphome.git
synced 2026-10-10 13:33:06 +00:00
19 lines
429 B
C++
19 lines
429 B
C++
#pragma once
|
|
|
|
#include "esphome/core/component.h"
|
|
#include "esphome/components/binary_sensor/binary_sensor.h"
|
|
|
|
namespace esphome::status {
|
|
|
|
class StatusBinarySensor final : public binary_sensor::BinarySensor, public PollingComponent {
|
|
public:
|
|
void update() override;
|
|
|
|
void setup() override;
|
|
void dump_config() override;
|
|
|
|
bool is_status_binary_sensor() const override { return true; }
|
|
};
|
|
|
|
} // namespace esphome::status
|