From c7b7519364923592d72cd7244a9233bdfefbac86 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 7 Jun 2023 17:51:01 -0500 Subject: [PATCH] cleanup --- components/ratgdo/ratgdo_child.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/ratgdo/ratgdo_child.h b/components/ratgdo/ratgdo_child.h index faf4278..6991a0b 100644 --- a/components/ratgdo/ratgdo_child.h +++ b/components/ratgdo/ratgdo_child.h @@ -13,11 +13,11 @@ namespace ratgdo { class RATGDOClient : public Parented { public: - void on_door_state(esphome::ratgdo::DoorState state) {}; - void on_light_state(esphome::ratgdo::LightState state) {}; - void on_lock_state(esphome::ratgdo::LockState state) {}; - void on_motion_state(esphome::ratgdo::MotionState state) {}; - void on_obstruction_state(esphome::ratgdo::ObstructionState state) {}; + virtual void on_door_state(esphome::ratgdo::DoorState state); + virtual void on_light_state(esphome::ratgdo::LightState state); + virtual void on_lock_state(esphome::ratgdo::LockState state); + virtual void on_motion_state(esphome::ratgdo::MotionState state); + virtual void on_obstruction_state(esphome::ratgdo::ObstructionState state); protected: friend RATGDOComponent;