fix: ignore hubitat if prefixes is set to empty string
This commit is contained in:
parent
38006566af
commit
cc4e1503f6
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -983,7 +983,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mqtt-exporter"
|
name = "mqtt-exporter"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"backoff",
|
"backoff",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mqtt-exporter"
|
name = "mqtt-exporter"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -346,7 +346,7 @@ impl App {
|
|||||||
&config.esphome_topic_prefixes,
|
&config.esphome_topic_prefixes,
|
||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
if !config.hubitat_topic_prefixes.is_empty() {
|
if !config.hubitat_topic_prefixes.is_empty() && !config.hubitat_topic_prefixes[0].is_empty() {
|
||||||
transformers.push(Box::new(HubitatNormalize::new(
|
transformers.push(Box::new(HubitatNormalize::new(
|
||||||
&config.hubitat_topic_prefixes,
|
&config.hubitat_topic_prefixes,
|
||||||
)))
|
)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user