mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user