mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Enable Ruff SIM118 (#87772)
This commit is contained in:
@@ -140,7 +140,7 @@ async def test_zeroconf_setup_onboarding(hass: HomeAssistant) -> 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