Clean up accessing service helpers via hass (#72013)

This commit is contained in:
Franck Nijhof 2022-05-17 19:56:57 +02:00 committed by GitHub
parent 5433c0a535
commit c0da97b038
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 55 additions and 45 deletions

View file

@ -377,7 +377,7 @@ async def test_async_get_descriptions_script(hass):
}
await async_setup_component(hass, DOMAIN, script_config)
descriptions = await hass.helpers.service.async_get_all_descriptions()
descriptions = await async_get_all_descriptions(hass)
assert descriptions[DOMAIN]["test1"]["description"] == ""
assert not descriptions[DOMAIN]["test1"]["fields"]