From 0a76ee5f45954b109ed5439740e33bfbd2b03b10 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 11:26:39 -0500 Subject: [PATCH] binary sensor --- .../ratgdo/binary_sensor/ratgdo_binary_sensor.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 3eddc8b..762d06d 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -7,17 +7,15 @@ namespace ratgdo { static const char *const TAG = "ratgdo.binary_sensor"; -class RATGDOBinarySensor : { -void dump_config() { +void RATGDOBinarySensor::dump_config() { LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this); } -void on_door_state(esphome::ratgdo::DoorState state) {} -void on_light_state(esphome::ratgdo::LightState state) {} -void on_lock_state(esphome::ratgdo::LockState state) {} -void on_motion_state(esphome::ratgdo::MotionState state) {} -void on_obstruction_state(esphome::ratgdo::ObstructionState state) {} - }; +void RATGDOBinarySensor::on_door_state(esphome::ratgdo::DoorState state) {} +void RATGDOBinarySensor::on_light_state(esphome::ratgdo::LightState state) {} +void RATGDOBinarySensor::on_lock_state(esphome::ratgdo::LockState state) {} +void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {} +void RATGDOBinarySensor::on_obstruction_state(esphome::ratgdo::ObstructionState state) {} } // namespace ratgdo } // namespace esphome