mirror of
https://github.com/esphome/esphome.git
synced 2024-12-02 19:54:14 +01:00
Update api_connection.cpp
This commit is contained in:
parent
66909ef1a4
commit
0e0feec862
1 changed files with 1 additions and 1 deletions
|
@ -1660,7 +1660,7 @@ void APIConnection::send_event_info(event::Event *event) {
|
||||||
}
|
}
|
||||||
bool APIConnection::try_send_event(APIConnection *api, void *v_event) {
|
bool APIConnection::try_send_event(APIConnection *api, void *v_event) {
|
||||||
event::Event *event = reinterpret_cast<event::Event *>(v_event);
|
event::Event *event = reinterpret_cast<event::Event *>(v_event);
|
||||||
return APIConnection::try_send_event(api, event, *(event->state));
|
return APIConnection::try_send_event(api, event, *(event->last_event_type));
|
||||||
}
|
}
|
||||||
bool APIConnection::try_send_event(APIConnection *api, event::Event *event, std::string event_type) {
|
bool APIConnection::try_send_event(APIConnection *api, event::Event *event, std::string event_type) {
|
||||||
EventResponse resp{};
|
EventResponse resp{};
|
||||||
|
|
Loading…
Reference in a new issue