mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
fix light state
This commit is contained in:
parent
50228f5679
commit
4e127e3566
@ -10,7 +10,7 @@ namespace ratgdo {
|
|||||||
void RATGDOBinarySensor::setup()
|
void RATGDOBinarySensor::setup()
|
||||||
{
|
{
|
||||||
if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION)
|
if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION)
|
||||||
this->publish_state(state == MotionState::MOTION_STATE_CLEAR);
|
this->publish_state(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RATGDOBinarySensor::dump_config()
|
void RATGDOBinarySensor::dump_config()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user