fix: enforce safe minimum equitherm exponent

This commit is contained in:
Yurii committed 2026-11-29 10:24:21 +03:00
1 parent 86adbc0db7
commit 62d40bdbf0
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2656,7 +2656,7 @@ static SettingResult applySetting(EquithermSettings& dst, std::string_view path,
return {}; return {};
} }
if (value <= 0.01f || value > 2.0f) { if (value < 0.2f || value > 2.0f) {
return {}; return {};
} }
+1 -1
View File
@@ -305,7 +305,7 @@ bool publishHaEntity(HaEntity entityId, bool remove) {
number->commandTopic = number->stateTopic + "/set"; number->commandTopic = number->stateTopic + "/set";
number->category = HA::Category::CONFIG; number->category = HA::Category::CONFIG;
number->mode = HA::NumberMode::BOX; number->mode = HA::NumberMode::BOX;
number->min = 0.011f; number->min = 0.2f;
number->max = 2; number->max = 2;
number->step = 0.001f; number->step = 0.001f;
number->icon = "mdi:exponent"; number->icon = "mdi:exponent";
+1 -1
View File
@@ -413,7 +413,7 @@
<label> <label>
<span data-i18n>settings.equitherm.exponent.title</span> <span data-i18n>settings.equitherm.exponent.title</span>
<input type="number" inputmode="decimal" name="exponent" min="0.1" max="2" step="0.001" required> <input type="number" inputmode="decimal" name="exponent" min="0.2" max="2" step="0.001" required>
<small data-i18n>settings.equitherm.exponent.note</small> <small data-i18n>settings.equitherm.exponent.note</small>
</label> </label>
</div> </div>