Add target option to zwave_js firmware upload view (#73690)

This commit is contained in:
Raman Gupta 2022-06-19 14:50:05 -04:00 committed by GitHub
parent ab95299150
commit 801ba6ff8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -2847,9 +2847,10 @@ async def test_firmware_upload_view(
) as mock_cmd:
resp = await client.post(
f"/api/zwave_js/firmware/upload/{device.id}",
data={"file": firmware_file},
data={"file": firmware_file, "target": "15"},
)
assert mock_cmd.call_args[0][1:4] == (multisensor_6, "file", bytes(10))
assert mock_cmd.call_args[1] == {"target": 15}
assert json.loads(await resp.text()) is None