hass: Omit retain when it is None

Home Assistant refuses to parse entity configuration objects if the
value of the `retain` field is `null`.
dev/ci
Dustin 2023-01-09 11:41:40 -06:00
parent 28c0944130
commit 4156a10685
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ pub struct HassConfig {
pub unique_id: String, pub unique_id: String,
pub object_id: String, pub object_id: String,
pub icon: String, pub icon: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub retain: Option<bool>, pub retain: Option<bool>,
} }