binary sensor
This commit is contained in:
parent
d5e385865a
commit
9293be012a
|
@ -7,21 +7,21 @@
|
|||
namespace esphome {
|
||||
namespace ratgdo {
|
||||
|
||||
using namespace esphome::binary_sensor;
|
||||
static const char *const TAG = "ratgdo.binary_sensor";
|
||||
|
||||
void RATGDOBinarySensor::dump_config() {
|
||||
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
|
||||
}
|
||||
|
||||
void RATGDOBinarySensor::setup() {}
|
||||
void RATGDOBinarySensor::setup() {
|
||||
this->publish_internal_state(false);
|
||||
}
|
||||
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) {}
|
||||
|
||||
void RATGDOBinarySensor::loop() {}
|
||||
|
||||
} // namespace ratgdo
|
||||
} // namespace esphome
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ namespace ratgdo {
|
|||
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
|
||||
public:
|
||||
void setup() override;
|
||||
void loop() override;
|
||||
void dump_config() override;
|
||||
|
||||
void on_door_state(esphome::ratgdo::DoorState state) override;
|
||||
|
|
Loading…
Reference in New Issue