commit
This commit is contained in:
parent
db0cc13267
commit
2fce4312eb
6 changed files with 10 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue