don't say ok after errors
This commit is contained in:
parent
ed811bcfdc
commit
62a934fc20
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -1120,7 +1120,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "homekit-controller"
|
||||
version = "0.5.3"
|
||||
version = "0.5.5"
|
||||
dependencies = [
|
||||
"chacha20poly1305",
|
||||
"ed25519-dalek",
|
||||
|
@ -1143,7 +1143,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "homekit-exporter"
|
||||
version = "0.5.4"
|
||||
version = "0.5.5"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"env_logger",
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
[package]
|
||||
name = "homekit-controller"
|
||||
version = "0.5.3"
|
||||
version = "0.5.5"
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
description = "Partial implementation of the HomeKit controller protocol"
|
||||
authors = ["Alex Janka"]
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
|
|
|
@ -334,23 +334,15 @@ impl DeviceConnection {
|
|||
}
|
||||
Some(socket) => {
|
||||
for (aid, data) in &mut self.accessories {
|
||||
's: for service in data.services.values_mut() {
|
||||
for service in data.services.values_mut() {
|
||||
let characteristic_ids = service
|
||||
.characteristics
|
||||
.keys()
|
||||
.map(|k| format!("{aid}.{k}"))
|
||||
.collect::<Vec<_>>();
|
||||
let characteristics = match socket
|
||||
let characteristics = socket
|
||||
.get_characteristics(&characteristic_ids, additional_data)
|
||||
.await
|
||||
{
|
||||
Ok(v) => v,
|
||||
Err(e) => {
|
||||
log::warn!("{}error getting characteristics{} {characteristic_ids:?}:\n\t{e:?}", formatted_name(&self.name), service.name.as_ref().map(|n|format!(" for {n}")).unwrap_or_default());
|
||||
|
||||
continue 's;
|
||||
}
|
||||
};
|
||||
.await?;
|
||||
for (cid, c) in &characteristics {
|
||||
if c.characteristic_type == CharacteristicType::Name {
|
||||
if let Some(Data::String(name)) = &c.value {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "homekit-exporter"
|
||||
version = "0.5.4"
|
||||
version = "0.5.5"
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
description = "Prometheus exporter for HomeKit sensors"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Alex Janka <alex@alexjanka.com>
|
||||
|
||||
pkgname=homekit-logger
|
||||
pkgver=0.5.4
|
||||
pkgver=0.5.5
|
||||
pkgrel=1
|
||||
pkgdesc="Prometheus exporter for HomeKit sensors"
|
||||
arch=('x86_64' 'aarch64')
|
||||
|
|
Loading…
Reference in a new issue