mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 10:13:04 +05:00
fix: enforce safe minimum equitherm exponent
This commit is contained in:
1 parent
86adbc0db7
commit
62d40bdbf0
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -2656,7 +2656,7 @@ static SettingResult applySetting(EquithermSettings& dst, std::string_view path,
|
||||
return {};
|
||||
}
|
||||
|
||||
if (value <= 0.01f || value > 2.0f) {
|
||||
if (value < 0.2f || value > 2.0f) {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@ bool publishHaEntity(HaEntity entityId, bool remove) {
|
||||
number->commandTopic = number->stateTopic + "/set";
|
||||
number->category = HA::Category::CONFIG;
|
||||
number->mode = HA::NumberMode::BOX;
|
||||
number->min = 0.011f;
|
||||
number->min = 0.2f;
|
||||
number->max = 2;
|
||||
number->step = 0.001f;
|
||||
number->icon = "mdi:exponent";
|
||||
|
||||
Reference in new issue
Block a user