Use literal string interpolation in integrations K-M (f-strings) (#26389)
This commit is contained in:
parent
ef0e9431b6
commit
7203027cbf
51 changed files with 104 additions and 121 deletions
|
@ -54,7 +54,7 @@ def number(value: Any) -> Union[int, float]:
|
|||
value = float(value)
|
||||
return value
|
||||
except (TypeError, ValueError):
|
||||
raise vol.Invalid("invalid number {}".format(value))
|
||||
raise vol.Invalid(f"invalid number {value}")
|
||||
|
||||
|
||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue