mirror of
https://codeberg.org/icewind/taspromto.git
synced 2026-06-03 16:44:11 +02:00
bump dependencies
This commit is contained in:
parent
7ec17d75ad
commit
94580d3558
6 changed files with 515 additions and 523 deletions
|
|
@ -121,7 +121,7 @@ async fn mqtt_client<S: Stream<Item = Result<Publish>>>(
|
|||
Topic::Power(_) => {}
|
||||
Topic::Result(device) | Topic::Sensor(device) | Topic::Status(device) => {
|
||||
let payload = std::str::from_utf8(message.payload.as_ref()).unwrap_or_default();
|
||||
if let Ok(json) = json::parse(payload) {
|
||||
if let Ok(json) = jzon::parse(payload) {
|
||||
let mut device_states = device_states.lock().unwrap();
|
||||
device_states.update(device, json);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue