From d717b72a9e7474507c85a6d0df2b34ba065b721b Mon Sep 17 00:00:00 2001 From: Proddy Date: Mon, 13 Nov 2023 16:58:20 +0100 Subject: [PATCH] have its own show_values function --- src/web/WebCustomEntityService.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/web/WebCustomEntityService.h b/src/web/WebCustomEntityService.h index 816b1bdb5..1b18e2073 100644 --- a/src/web/WebCustomEntityService.h +++ b/src/web/WebCustomEntityService.h @@ -52,22 +52,23 @@ class WebCustomEntityService : public StatefulService { public: WebCustomEntityService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager); - void begin(); - void publish_single(const CustomEntityItem & entity); - void publish(const bool force = false); - bool command_setvalue(const char * value, const std::string name); - bool get_value_info(JsonObject & output, const char * cmd); - bool get_value(std::shared_ptr telegram); - void fetch(); - void render_value(JsonObject & output, CustomEntityItem entity, const bool useVal = false, const bool web = false); + void begin(); + void publish_single(const CustomEntityItem & entity); + void publish(const bool force = false); + bool command_setvalue(const char * value, const std::string name); + bool get_value_info(JsonObject & output, const char * cmd); + bool get_value(std::shared_ptr telegram); + void fetch(); + void render_value(JsonObject & output, CustomEntityItem entity, const bool useVal = false, const bool web = false, const bool add_uom = false); + void show_values(JsonObject & output); + void generate_value_web(JsonObject & output); + uint8_t count_entities(); uint8_t has_commands(); - void generate_value_web(JsonObject & output); void ha_reset() { ha_registered_ = false; } - private: HttpEndpoint _httpEndpoint; FSPersistence _fsPersistence;