Also add to MQTT

This commit is contained in:
Oxan van Leeuwen 2021-11-18 22:49:38 +01:00
parent 889349efe5
commit 2743000d81
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ bool MQTTComponent::send_discovery_() {
case ENTITY_CATEGORY_DIAGNOSTIC:
root[MQTT_ENTITY_CATEGORY] = "diagnostic";
break;
case ENTITY_CATEGORY_SYSTEM:
root[MQTT_ENTITY_CATEGORY] = "system";
break;
}
if (config.state_topic)