mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Remove unused noqas (#135583)
This commit is contained in:
committed by
GitHub
parent
f57640c2cd
commit
8a35261fd8
@ -674,11 +674,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 # noqa: E721
|
||||
or type(value) is NodeStrClass
|
||||
or isinstance(value, str)
|
||||
):
|
||||
if type(value) is str or type(value) is NodeStrClass or isinstance(value, str):
|
||||
return value
|
||||
|
||||
if isinstance(value, template_helper.ResultWrapper):
|
||||
|
Reference in New Issue
Block a user