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]]
|
||||
name = "mqtt-exporter"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"backoff",
|
||||
"bytes",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mqtt-exporter"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -346,7 +346,7 @@ impl App {
|
||||
&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(
|
||||
&config.hubitat_topic_prefixes,
|
||||
)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user