Skip to content

Commit 0671389

Browse files
committed
fix: why is it never simple?
1 parent f6873f1 commit 0671389

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Intouch2-MQTT"
22
description: "A bridge between intouch2, used in spa systems, and MQTT 3.3"
3-
version: "0.1.251"
3+
version: "0.1.252"
44
slug: "intouch2-mqtt"
55
init: false
66
arch:

intouch2-mqtt/src/home_assistant.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pub struct ConfigureDevice {
66
pub name: Arc<str>,
77
#[serde(skip_serializing_if = "Option::is_none")]
88
pub sw_version: Option<Arc<str>>,
9-
#[serde(skip_serializing_if = "Option::is_none")]
10-
pub configuration_url: Option<Arc<str>>,
9+
//#[serde(skip_serializing_if = "Option::is_none")]
10+
// pub configuration_url: Option<Arc<str>>,
1111
#[serde(flatten)]
1212
pub extra_args: HashMap<&'static str, serde_json::Value>,
1313
}

intouch2-mqtt/src/main.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use serde_json::json;
1414
use std::{
1515
borrow::Cow,
1616
collections::VecDeque,
17-
env,
1817
net::IpAddr,
1918
path::PathBuf,
2019
pin::pin,
@@ -562,12 +561,10 @@ async fn main() -> anyhow::Result<()> {
562561
name: spa_name.into(),
563562
sw_version: Some(spa_version.into()),
564563
extra_args: Default::default(),
565-
configuration_url: env::var("HOSTNAME")
566-
.map(|hostname| {
567-
format!("homeassistant://navigate/hassio/addon/{hostname}/config")
568-
})
569-
.ok()
570-
.map(Into::into),
564+
// configuration_url: env::var("HOSTNAME")
565+
// .map(|hostname| format!("homeassistant://hassio/addon/{hostname}/config"))
566+
// .ok()
567+
// .map(Into::into),
571568
})?;
572569
let spa = spa.clone();
573570
join_set.spawn(async move {

0 commit comments

Comments
 (0)