mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Microphone add is_stopped (#5183)
This commit is contained in:
parent
8c66de2391
commit
e02aaedc42
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ class Microphone {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_running() const { return this->state_ == STATE_RUNNING; }
|
bool is_running() const { return this->state_ == STATE_RUNNING; }
|
||||||
|
bool is_stopped() const { return this->state_ == STATE_STOPPED; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
State state_{STATE_STOPPED};
|
State state_{STATE_STOPPED};
|
||||||
|
|
Loading…
Reference in a new issue