From 4238b2876168895ea8d460d430fdcdc4c60428b8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 14:08:35 -0500 Subject: [PATCH] light --- .../ratgdo/binary_sensor/ratgdo_binary_sensor.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 46b023d..1547b54 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -12,19 +12,19 @@ namespace ratgdo { LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this); ESP_LOGCONFIG(TAG, " Type: %s", this->type_ == SensorType::RATGDO_SENSOR_MOTION ? "Motion" : "Obstruction"); } - void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) + void RATGDOBinarySensor::on_motion_state(MotionState state) { if (this->type_ == SensorType::RATGDO_SENSOR_MOTION) - this->publish_state(state == esphome::ratgdo::MotionState::MOTION_STATE_DETECTED); + this->publish_state(state == MotionState::MOTION_STATE_DETECTED); } - void RATGDOBinarySensor::on_obstruction_state(esphome::ratgdo::ObstructionState state) + void RATGDOBinarySensor::on_obstruction_state(ObstructionState state) { if (this->type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION) - this->publish_state(state == esphome::ratgdo::ObstructionState::OBSTRUCTION_STATE_OBSTRUCTED); + this->publish_state(state == ObstructionState::OBSTRUCTION_STATE_OBSTRUCTED); } - 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_door_state(DoorState state) { } + void RATGDOBinarySensor::on_light_state(LightState state) { } + void RATGDOBinarySensor::on_lock_state(:LockState state) { } } // namespace ratgdo } // namespace esphome