| 82 | } |
| 83 | |
| 84 | void IconTextPlugin::getTopics(JsonArray& topics) const |
| 85 | { |
| 86 | JsonObject jsonText = topics.createNestedObject(); |
| 87 | |
| 88 | /* The topic contains Home Assistant support of the MQTT discovery |
| 89 | * (https://www.home-assistant.io/integrations/mqtt). See the configured |
| 90 | * JSON file. |
| 91 | * |
| 92 | * The used icon is from MaterialDesignIcons.com (namespace: mdi). |
| 93 | */ |
| 94 | jsonText["name"] = TOPIC_TEXT; |
| 95 | jsonText["extra"]["ha"] = TOPIC_TEXT_EXTRA_HA_FILE_NAME; |
| 96 | } |
| 97 | |
| 98 | bool IconTextPlugin::getTopic(const String& topic, JsonObject& value) const |
| 99 | { |
nothing calls this directly
no outgoing calls
no test coverage detected