diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index dcc98f78a77..15e1192993a 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -168,3 +168,11 @@ faust-cchardet>=2.1.18 # which break wheel builds so we need at least 11.0.1 # https://github.com/aaugustin/websockets/issues/1329 websockets>=11.0.1 + +# pyasn1 0.5.0 has breaking changes which cause pysnmplib to fail +# until they are resolved, we need to pin pyasn1 to 0.4.8 and +# pysnmplib to 5.0.21 to avoid the issue. +# https://github.com/pyasn1/pyasn1/pull/30#issuecomment-1517564335 +# https://github.com/pysnmp/pysnmp/issues/51 +pyasn1==0.4.8 +pysnmplib==5.0.21 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 725c728607b..592e8f5a1f0 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -172,6 +172,14 @@ faust-cchardet>=2.1.18 # which break wheel builds so we need at least 11.0.1 # https://github.com/aaugustin/websockets/issues/1329 websockets>=11.0.1 + +# pyasn1 0.5.0 has breaking changes which cause pysnmplib to fail +# until they are resolved, we need to pin pyasn1 to 0.4.8 and +# pysnmplib to 5.0.21 to avoid the issue. +# https://github.com/pyasn1/pyasn1/pull/30#issuecomment-1517564335 +# https://github.com/pysnmp/pysnmp/issues/51 +pyasn1==0.4.8 +pysnmplib==5.0.21 """ IGNORE_PRE_COMMIT_HOOK_ID = (