get rid of strings

This commit is contained in:
J. Nick Koston 2023-06-07 10:09:56 -05:00
parent 60ef702fd2
commit e75db00096
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -45,12 +45,14 @@ namespace ratgdo {
LOCK_STATE_LOCKED = 1,
LOCK_STATE_UNKNOWN = 2,
};
const char* lock_state_to_string(LockState state);
/// Enum for all states a the motion can be in.
enum MotionState : uint8_t {
MOTION_STATE_CLEAR = 0,
MOTION_STATE_DETECTED = 1,
};
const char* motion_state_to_string(MotionState state);
/// Enum for all states a the obstruction can be in.
enum ObstructionState : uint8_t {
@ -58,6 +60,7 @@ namespace ratgdo {
OBSTRUCTION_STATE_CLEAR = 1,
OBSTRUCTION_STATE_UNKNOWN = 2,
};
const char* obstruction_state_to_string(ObstructionState state);
} // namespace ratgdo
} // namespace esphome