|
@@ -385,8 +385,14 @@ shutdown_delay_seconds = 30
|
|
|
assert!(cfg.before_serve.contains_key("extra"));
|
|
assert!(cfg.before_serve.contains_key("extra"));
|
|
|
// HA config merges from the source when main has none (power on from
|
|
// HA config merges from the source when main has none (power on from
|
|
|
// other cwds depends on this).
|
|
// other cwds depends on this).
|
|
|
- assert!(cfg.home_assistant.is_some(), "home_assistant filled from source");
|
|
|
|
|
- assert_eq!(cfg.home_assistant.as_ref().unwrap().url, "http://ha.lan:8123");
|
|
|
|
|
|
|
+ assert!(
|
|
|
|
|
+ cfg.home_assistant.is_some(),
|
|
|
|
|
+ "home_assistant filled from source"
|
|
|
|
|
+ );
|
|
|
|
|
+ assert_eq!(
|
|
|
|
|
+ cfg.home_assistant.as_ref().unwrap().url,
|
|
|
|
|
+ "http://ha.lan:8123"
|
|
|
|
|
+ );
|
|
|
// A main-config ssh_user is never overridden by a source; same rule
|
|
// A main-config ssh_user is never overridden by a source; same rule
|
|
|
// for home_assistant.
|
|
// for home_assistant.
|
|
|
let mut cfg2 = tcfg();
|
|
let mut cfg2 = tcfg();
|