Revert "[binary_sensor] initial state refactor" (#8828)

This commit is contained in:
Clyde Stubbs
2025-05-18 13:30:08 +10:00
committed by GitHub
parent 18ac1b7c54
commit 44470f31f6
4 changed files with 42 additions and 38 deletions

View File

@@ -67,7 +67,7 @@ class BinarySensor : public EntityBase, public EntityBase_DeviceClass {
// ========== INTERNAL METHODS ==========
// (In most use cases you won't need these)
void send_state_internal(bool state);
void send_state_internal(bool state, bool is_initial);
/// Return whether this binary sensor has outputted a state.
virtual bool has_state() const;