mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
change order in "cannot find 'device' in 'command'"
This commit is contained in:
@@ -711,7 +711,7 @@ bool AnalogSensor::get_value_info(JsonObject output, const char * cmd, const int
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EMSESP::return_not_found(output, "analog sensor", cmd); // not found
|
return EMSESP::return_not_found(output, cmd, F_(analogsensor)); // not found
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnalogSensor::addSensorJson(JsonObject output, const Sensor & sensor) {
|
void AnalogSensor::addSensorJson(JsonObject output, const Sensor & sensor) {
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ bool TemperatureSensor::get_value_info(JsonObject output, const char * cmd, cons
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EMSESP::return_not_found(output, "temperature sensor", cmd); // not found
|
return EMSESP::return_not_found(output, cmd, F_(temperaturesensor)); // not found
|
||||||
}
|
}
|
||||||
|
|
||||||
void TemperatureSensor::addSensorJson(JsonObject output, const Sensor & sensor) {
|
void TemperatureSensor::addSensorJson(JsonObject output, const Sensor & sensor) {
|
||||||
|
|||||||
@@ -334,7 +334,7 @@ bool WebCustomEntityService::get_value_info(JsonObject output, const char * cmd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EMSESP::return_not_found(output, "custom entity", cmd); // not found
|
return EMSESP::return_not_found(output, cmd, F_(custom)); // not found
|
||||||
}
|
}
|
||||||
|
|
||||||
// publish single value
|
// publish single value
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ bool WebSchedulerService::get_value_info(JsonObject output, const char * cmd) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return EMSESP::return_not_found(output, "schedule", cmd); // not found
|
return EMSESP::return_not_found(output, cmd, F_(scheduler)); // not found
|
||||||
}
|
}
|
||||||
|
|
||||||
// publish single value
|
// publish single value
|
||||||
|
|||||||
Reference in New Issue
Block a user