diff --git a/Cargo.lock b/Cargo.lock index 1bc1aa3..6583999 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -983,7 +983,7 @@ dependencies = [ [[package]] name = "mqtt-exporter" -version = "0.1.0" +version = "0.1.1" dependencies = [ "backoff", "bytes", diff --git a/Cargo.toml b/Cargo.toml index 64b4aab..ff0e3ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mqtt-exporter" -version = "0.1.0" +version = "0.1.1" edition = "2021" [dependencies] diff --git a/src/main.rs b/src/main.rs index c68db98..ed79bad 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, )))