This commit is contained in:
Moritz Ruth 2024-03-06 21:39:48 +01:00
parent db0cc13267
commit 2fce4312eb
Signed by: moritzruth
GPG key ID: C9BBAB79405EE56D
6 changed files with 10 additions and 7 deletions

View file

@ -162,6 +162,8 @@ async fn do_work(
match event {
Err(error) => {
log::error!("The WebSocket connection failed: {error}");
state_updates_sender.send(StateUpdate::Disconnected).unwrap();
break;
}
Ok(message) => match message {
@ -193,7 +195,7 @@ async fn do_work(
}
HaIncomingWsMessage::Result { id, success } => {
if !success {
panic!("A command ({id}) failed.");
panic!("A command ({}) failed.", id);
}
for entity_id in state_timestamp_by_entity_id.read().await.keys() {