binary sensor

This commit is contained in:
J. Nick Koston 2023-06-07 10:49:45 -05:00
parent d5e385865a
commit 9293be012a
No known key found for this signature in database
2 changed files with 4 additions and 5 deletions

View File

@ -7,21 +7,21 @@
namespace esphome { namespace esphome {
namespace ratgdo { namespace ratgdo {
using namespace esphome::binary_sensor; static const char *const TAG = "ratgdo.binary_sensor";
void RATGDOBinarySensor::dump_config() { void RATGDOBinarySensor::dump_config() {
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this); LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
} }
void RATGDOBinarySensor::setup() {} void RATGDOBinarySensor::setup() {
this->publish_internal_state(false);
}
void RATGDOBinarySensor::on_door_state(esphome::ratgdo::DoorState state) {} void RATGDOBinarySensor::on_door_state(esphome::ratgdo::DoorState state) {}
void RATGDOBinarySensor::on_light_state(esphome::ratgdo::LightState state) {} void RATGDOBinarySensor::on_light_state(esphome::ratgdo::LightState state) {}
void RATGDOBinarySensor::on_lock_state(esphome::ratgdo::LockState state) {} void RATGDOBinarySensor::on_lock_state(esphome::ratgdo::LockState state) {}
void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {} void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {}
void RATGDOBinarySensor::on_obstruction_state(esphome::ratgdo::ObstructionState state) {} void RATGDOBinarySensor::on_obstruction_state(esphome::ratgdo::ObstructionState state) {}
void RATGDOBinarySensor::loop() {}
} // namespace ratgdo } // namespace ratgdo
} // namespace esphome } // namespace esphome

View File

@ -14,7 +14,6 @@ namespace ratgdo {
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component { class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
public: public:
void setup() override; void setup() override;
void loop() override;
void dump_config() override; void dump_config() override;
void on_door_state(esphome::ratgdo::DoorState state) override; void on_door_state(esphome::ratgdo::DoorState state) override;