27 lines
598 B
C++
27 lines
598 B
C++
#include "esphome/core/log.h"
|
|
#include "app_status.h"
|
|
|
|
namespace esphome {
|
|
namespace app_status {
|
|
|
|
static const char *TAG = "app_status.binary_sensor";
|
|
|
|
void AppStatusBinarySensor::setup() {
|
|
|
|
}
|
|
|
|
void AppStatusBinarySensor::update() {
|
|
ESP_LOGV(TAG, "update() called; inverted = %s", TRUEFALSE(this->inverted_));
|
|
this->publish_state(this->inverted_); // XXX
|
|
}
|
|
|
|
void AppStatusBinarySensor::dump_config() {
|
|
ESP_LOGCONFIG(TAG, "App status binary sensor");
|
|
ESP_LOGCONFIG(TAG, " inverted = %s", TRUEFALSE(this->inverted_));
|
|
}
|
|
|
|
} // namespace app_status
|
|
} // namespace esphome
|
|
|
|
// vim:set sw=2:
|