cleanup
This commit is contained in:
parent
169104b621
commit
ef21292a6e
|
@ -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
|
||||
|
|
|
@ -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_;
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue