Enable Ruff rule PT007 (#113764)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
089a3ab6d7
commit
00ec7f11f0
204 changed files with 908 additions and 921 deletions
|
@ -348,13 +348,13 @@ async def test_webhook_returns_error_incorrect_json(
|
|||
|
||||
@pytest.mark.parametrize(
|
||||
("msg", "generate_response"),
|
||||
(
|
||||
[
|
||||
(RENDER_TEMPLATE, lambda hass: {"one": "Hello world"}),
|
||||
(
|
||||
{"type": "get_zones", "data": {}},
|
||||
lambda hass: [hass.states.get("zone.home").as_dict()],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_webhook_handle_decryption(
|
||||
hass: HomeAssistant, webhook_client, create_registrations, msg, generate_response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue