mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
some refactoring
This commit is contained in:
@@ -73,7 +73,7 @@ class WebCustomEntityService : public StatefulService<WebCustomEntity> {
|
||||
}
|
||||
|
||||
#if defined(EMSESP_TEST)
|
||||
void test();
|
||||
void load_test_data();
|
||||
#endif
|
||||
|
||||
private:
|
||||
|
||||
@@ -366,7 +366,7 @@ void WebCustomizationService::begin() {
|
||||
|
||||
// hard coded tests
|
||||
#ifdef EMSESP_TEST
|
||||
void WebCustomizationService::test() {
|
||||
void WebCustomizationService::load_test_data() {
|
||||
update([&](WebCustomization & webCustomization) {
|
||||
// Temperature sensors
|
||||
webCustomization.sensorCustomizations.clear();
|
||||
|
||||
@@ -85,7 +85,7 @@ class WebCustomizationService : public StatefulService<WebCustomization> {
|
||||
void begin();
|
||||
|
||||
#if defined(EMSESP_TEST)
|
||||
void test();
|
||||
void load_test_data();
|
||||
#endif
|
||||
|
||||
// make all functions public so we can test in the debug and standalone mode
|
||||
|
||||
@@ -87,7 +87,7 @@ class WebSchedulerService : public StatefulService<WebScheduler> {
|
||||
bool onChange(const char * cmd);
|
||||
|
||||
#if defined(EMSESP_TEST)
|
||||
void test();
|
||||
void load_test_data();
|
||||
#endif
|
||||
|
||||
// make all functions public so we can test in the debug and standalone mode
|
||||
|
||||
Reference in New Issue
Block a user