diff --git a/packages/modules/devices/avm/avm/device.py b/packages/modules/devices/avm/avm/device.py index 942c39e5da..db1fb7c51a 100644 --- a/packages/modules/devices/avm/avm/device.py +++ b/packages/modules/devices/avm/avm/device.py @@ -42,7 +42,11 @@ def update_components(components: Iterable[AvmCounter]): def get_session_id(): # checking existing sessionID - response = req.get_http_session().post(f"http://{device_config.configuration.ip_address}/login_sid.lua") + data = { + 'content-type': 'application/text' + } + response = req.get_http_session().post( + f"http://{device_config.configuration.ip_address}/login_sid.lua", data=data, timeout=5) challengeResponse = ET.fromstring(response.content) session_id = challengeResponse.find('SID').text if session_id != INVALID_SESSIONID: