1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-12 08:12:22 +01:00

Webui small fixes (#3713)

This commit is contained in:
anatoly-savchenkov
2022-08-15 01:28:29 +03:00
committed by GitHub
parent e008b054cb
commit 01a4443b6c
5 changed files with 604 additions and 589 deletions

View File

@@ -415,6 +415,9 @@ ParseOnOffState parse_on_off(const char *str, const char *on = nullptr, const ch
/// Create a string from a value and an accuracy in decimals.
std::string value_accuracy_to_string(float value, int8_t accuracy_decimals);
/// Derive accuracy in decimals from an increment step.
int8_t step_to_accuracy_decimals(float step);
///@}
/// @name Colors