mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
[api] Fix sending the `once
` flag on ha entity subscription (#7357)
This commit is contained in:
parent
dc9c001056
commit
0f2064193f
1 changed files with 1 additions and 0 deletions
|
@ -179,6 +179,7 @@ void APIConnection::loop() {
|
||||||
SubscribeHomeAssistantStateResponse resp;
|
SubscribeHomeAssistantStateResponse resp;
|
||||||
resp.entity_id = it.entity_id;
|
resp.entity_id = it.entity_id;
|
||||||
resp.attribute = it.attribute.value();
|
resp.attribute = it.attribute.value();
|
||||||
|
resp.once = it.once;
|
||||||
if (this->send_subscribe_home_assistant_state_response(resp)) {
|
if (this->send_subscribe_home_assistant_state_response(resp)) {
|
||||||
state_subs_at_++;
|
state_subs_at_++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue