[api] Fix sending the `once` flag on ha entity subscription (#7357)

This commit is contained in:
Jesse Hills 2024-08-27 10:20:26 +12:00
parent c1774c42c2
commit 9975e8b544
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A

View file

@ -179,6 +179,7 @@ void APIConnection::loop() {
SubscribeHomeAssistantStateResponse resp;
resp.entity_id = it.entity_id;
resp.attribute = it.attribute.value();
resp.once = it.once;
if (this->send_subscribe_home_assistant_state_response(resp)) {
state_subs_at_++;
}