This commit is contained in:
Mateusz Gruszczyński committed 2026-09-16 14:24:40 +02:00
1 parent d0ae3d0f6a
commit 3f9acb1675
28 files changed
+726 -127

No files matched your search

+4
View File
@@ -22,6 +22,10 @@ pub struct HomeAssistantSettings {
/// Accept self-signed/expired certificates for local Home Assistant HTTPS.
#[serde(default)]
pub allow_invalid_tls: bool,
/// In the Home Assistant add-on, use the persisted URL/token instead of Supervisor auth.
/// Ignored by standalone installations.
#[serde(default)]
pub manual_auth_override: bool,
/// Friendly labels used only by the controller UI/charts; entity_id remains the storage key.
#[serde(default)]
pub sensor_aliases: BTreeMap<String, String>,
+7
View File
@@ -131,6 +131,8 @@ pub struct HomeAssistantSettingsUpdate {
pub outdoor_entity_id: String,
pub sensor_stale_after_seconds: u64,
pub allow_invalid_tls: bool,
#[serde(default)]
pub manual_auth_override: bool,
pub sensor_aliases: BTreeMap<String, String>,
pub flow_inputs: Vec<FlowSharedInput>,
pub outdoor_assist_enabled: bool,
@@ -139,8 +141,13 @@ pub struct HomeAssistantSettingsUpdate {
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HomeAssistantSettingsView {
pub url: String,
pub manual_url: String,
pub auth_mode: String,
pub token_configured: bool,
pub manual_token_configured: bool,
pub supervisor_detected: bool,
pub supervisor_token_detected: bool,
pub manual_auth_override: bool,
pub outdoor_entity_id: String,
pub sensor_stale_after_seconds: u64,
pub allow_invalid_tls: bool,