This commit is contained in:
J. Nick Koston 2023-06-07 17:49:37 -05:00
parent 169104b621
commit ef21292a6e
No known key found for this signature in database
4 changed files with 2 additions and 15 deletions

View File

@ -30,9 +30,7 @@ namespace ratgdo {
if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_OBSTRUCTION)
this->publish_state(state == ObstructionState::OBSTRUCTION_STATE_OBSTRUCTED);
}
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

View File

@ -22,9 +22,6 @@ namespace ratgdo {
void on_motion_state(MotionState state) override;
void on_obstruction_state(ObstructionState state) override;
void on_door_state(DoorState state) override;
void on_light_state(LightState state) override;
void on_lock_state(LockState state) override;
protected:
SensorType binary_sensor_type_;

View File

@ -13,8 +13,6 @@ namespace ratgdo {
{
LOG_COVER("", "RATGDO Cover", this);
}
void RATGDOCover::on_motion_state(MotionState state) { }
void RATGDOCover::on_obstruction_state(ObstructionState state) { }
void RATGDOCover::on_door_state(DoorState state)
{
switch (state) {
@ -42,8 +40,6 @@ namespace ratgdo {
this->publish_state();
}
void RATGDOCover::on_light_state(LightState state) { }
void RATGDOCover::on_lock_state(LockState state) { }
CoverTraits RATGDOCover::get_traits()
{

View File

@ -13,12 +13,8 @@ namespace ratgdo {
public:
void dump_config() override;
cover::CoverTraits get_traits() override;
void on_motion_state(MotionState state) override;
void on_obstruction_state(ObstructionState state) override;
void on_door_state(DoorState state) override;
void on_light_state(LightState state) override;
void on_lock_state(LockState state) override;
protected:
void control(const cover::CoverCall& call) override;