distate: max_length() has no use for value() either

This commit is contained in:
hap 2023-01-02 16:05:25 +01:00
parent 63e58fe12c
commit d8f94651d7

View File

@ -410,7 +410,7 @@ std::string device_state_entry::to_string() const
int device_state_entry::max_length() const
{
// ask the entry to format itself maximally
return format("", value(), true).length();
return format("", 0, true).length();
}