Improve error message for sensors with a non-numeric value (#93399)

* Improve error message for sensors with a non-numeric value

* Address review comment
This commit is contained in:
Erik Montnemery 2023-05-23 15:54:24 +02:00 committed by GitHub
parent f8f83906f8
commit d62cdf3d65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1842,7 +1842,7 @@ async def test_non_numeric_validation_error(
assert (
"thus indicating it has a numeric value; "
f"however, it has the non-numeric value: {native_value}"
f"however, it has the non-numeric value: '{native_value}'"
) in caplog.text