mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Upgrade ruff to 0.0.285 (#98647)
This commit is contained in:
@@ -586,7 +586,7 @@ def string(value: Any) -> str:
|
||||
raise vol.Invalid("string value is None")
|
||||
|
||||
# This is expected to be the most common case, so check it first.
|
||||
if type(value) is str: # pylint: disable=unidiomatic-typecheck
|
||||
if type(value) is str: # noqa: E721
|
||||
return value
|
||||
|
||||
if isinstance(value, template_helper.ResultWrapper):
|
||||
|
||||
Reference in New Issue
Block a user