Fix InfluxDb receives IPAddress as a value regression from v15.0.1.3 (#24031)

This commit is contained in:
Theo Arends 2025-10-19 15:44:27 +02:00
parent 623dea884f
commit efca3b86b6
3 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
- Extension Manager exception when `OtaUrl` is not defined or invalid
- HASPmota exception in `cpicker` (colorwheel) (#24010)
- Extension Manager Light Theme support and Extensions input field control
- InfluxDb receives IPAddress as a value regression from v15.0.1.3 (#24031)
### Removed

View File

@ -124,6 +124,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm
- Refactored library UDisplay [#24007](https://github.com/arendst/Tasmota/issues/24007)
### Fixed
- InfluxDb receives IPAddress as a value regression from v15.0.1.3 [#24031](https://github.com/arendst/Tasmota/issues/24031)
- TLS fix ECDSA and add `SetOption165 1` to enable ECDSA in addition to RSA [#24000](https://github.com/arendst/Tasmota/issues/24000)
- Extension Manager exception when `OtaUrl` is not defined or invalid
- Extension Manager Light Theme support and Extensions input field control

View File

@ -292,6 +292,9 @@ char* InfluxDbNumber(char* alternative, JsonParserToken value) {
char* source = (char*)value.getStr();
// Test for valid numeric data ('-.0123456789') or ON, OFF etc. as defined in kOptions
if (source != nullptr) {
if (ChrCount(source, ".") > 1) { // IPAddress like 192.168.2.123
return nullptr;
}
char* out = source;
// Convert special text as found in kOptions to a number
// Like "OFF" -> 0, "ON" -> 1, "TOGGLE" -> 2