mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 10:44:04 +00:00
Retry query on 403 after succesful handshake (#785)
If a handshake session becomes invalid the device returns 403 on send and an `AuthenticationError` is raised which prevents a retry, however a retry would be successful. In HA this causes devices to go into reauth flow which is not necessary.
This commit is contained in:
@@ -417,7 +417,7 @@ async def test_query(mocker):
|
||||
pytest.param(
|
||||
(200, 200, 403),
|
||||
True,
|
||||
pytest.raises(AuthenticationError),
|
||||
pytest.raises(_RetryableError),
|
||||
id="request-403-status",
|
||||
),
|
||||
pytest.param(
|
||||
|
Reference in New Issue
Block a user