Skip to content

Commit

Permalink
+ Add a few new z2m fields on ConfigHomeassistant (with defaults ena…
Browse files Browse the repository at this point in the history
…bled, so they work on z2m 1.x)
  • Loading branch information
chrivers committed Jan 13, 2025
1 parent d9edd66 commit 079204d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/z2m/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ pub struct ConfigSerial {

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ConfigHomeassistant {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(default)]
pub experimental_event_entities: Option<Value>,
#[serde(default)]
pub legacy_action_sensor: Option<Value>,
pub discovery_topic: String,
pub status_topic: String,
}
Expand Down

0 comments on commit 079204d

Please sign in to comment.