tweak
This commit is contained in:
parent
653a050a05
commit
4f0166e357
|
@ -7,6 +7,8 @@
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
namespace ratgdo {
|
namespace ratgdo {
|
||||||
|
|
||||||
|
using namespace esphome::binary_sensor;
|
||||||
|
|
||||||
static const char *const TAG = "ratgdo.binary_sensor";
|
static const char *const TAG = "ratgdo.binary_sensor";
|
||||||
|
|
||||||
class RATGDOBinarySensor {
|
class RATGDOBinarySensor {
|
||||||
|
@ -14,9 +16,6 @@ void dump_config() {
|
||||||
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
|
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup() {
|
|
||||||
this->publish_internal_state(false);
|
|
||||||
}
|
|
||||||
void on_door_state(esphome::ratgdo::DoorState state) {}
|
void on_door_state(esphome::ratgdo::DoorState state) {}
|
||||||
void on_light_state(esphome::ratgdo::LightState state) {}
|
void on_light_state(esphome::ratgdo::LightState state) {}
|
||||||
void on_lock_state(esphome::ratgdo::LockState state) {}
|
void on_lock_state(esphome::ratgdo::LockState state) {}
|
||||||
|
|
|
@ -11,7 +11,6 @@ namespace ratgdo {
|
||||||
|
|
||||||
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
|
class RATGDOBinarySensor : public binary_sensor::BinarySensor, public RATGDOClient, public Component {
|
||||||
public:
|
public:
|
||||||
void setup() override;
|
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
|
|
||||||
void on_door_state(esphome::ratgdo::DoorState state) override;
|
void on_door_state(esphome::ratgdo::DoorState state) override;
|
||||||
|
|
Loading…
Reference in New Issue