mirror of
https://github.com/home-assistant/core.git
synced 2025-05-16 11:59:16 +00:00

It is not correct to show warning about "unexpected event type" if EVENT_STATE_CHANGED have no new_state field. We should show this warning only if it is real unexpected event type. Run task_done() before continue, because we should tell the queue that the processing on the task is complete after get().