diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -137,6 +137,9 @@ struct EntityDiscovery<'a> { | |||
| 137 | icon: Option<&'a str>, | 137 | icon: Option<&'a str>, |
| 138 | 138 | ||
| 139 | #[serde(skip_serializing_if = "Option::is_none")] | 139 | #[serde(skip_serializing_if = "Option::is_none")] |
| 140 | entity_category: Option<&'a str>, | ||
| 141 | |||
| 142 | #[serde(skip_serializing_if = "Option::is_none")] | ||
| 140 | entity_picture: Option<&'a str>, | 143 | entity_picture: Option<&'a str>, |
| 141 | 144 | ||
| 142 | #[serde(skip_serializing_if = "Option::is_none")] | 145 | #[serde(skip_serializing_if = "Option::is_none")] |
| @@ -771,6 +774,7 @@ pub async fn run<T: Transport>(device: &mut Device<'_>, transport: &mut T) -> Re | |||
| 771 | platform: entity_config.platform, | 774 | platform: entity_config.platform, |
| 772 | state_class: entity_config.state_class, | 775 | state_class: entity_config.state_class, |
| 773 | icon: entity_config.icon, | 776 | icon: entity_config.icon, |
| 777 | entity_category: entity_config.category, | ||
| 774 | entity_picture: entity_config.picture, | 778 | entity_picture: entity_config.picture, |
| 775 | min: entity_config.min, | 779 | min: entity_config.min, |
| 776 | max: entity_config.max, | 780 | max: entity_config.max, |
