mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Enable Ruff SIM118 (#87772)
This commit is contained in:
@@ -52,7 +52,7 @@ async def test_config_flow(hass: HomeAssistant, platform) -> None:
|
||||
|
||||
def get_suggested(schema, key):
|
||||
"""Get suggested value for key in voluptuous schema."""
|
||||
for k in schema.keys():
|
||||
for k in schema:
|
||||
if k == key:
|
||||
if k.description is None or "suggested_value" not in k.description:
|
||||
return None
|
||||
|
Reference in New Issue
Block a user