[binary_sensor] initial state refactor (#8648)

Co-authored-by: Zsombor Welker <flaktack@welker.hu>
This commit is contained in:
Clyde Stubbs
2025-05-01 13:58:35 +10:00
committed by GitHub
parent 8cd62c0308
commit 087ff865a7
4 changed files with 38 additions and 42 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, bool is_initial);
void send_state_internal(bool state);
/// Return whether this binary sensor has outputted a state.
virtual bool has_state() const;