diff --git a/homeassistant/components/aten_pe/switch.py b/homeassistant/components/aten_pe/switch.py
index d49201f6d7b1a7800a8bf3290999d2db2e826fb0..cdf45db035ce82de916e32845b4fda2c2fa08250 100644
--- a/homeassistant/components/aten_pe/switch.py
+++ b/homeassistant/components/aten_pe/switch.py
@@ -4,7 +4,7 @@ from __future__ import annotations
 import logging
 from typing import Any
 
-from atenpdu import AtenPE, AtenPEError
+from atenpdu import AtenPE, AtenPEError  # pylint: disable=import-error
 import voluptuous as vol
 
 from homeassistant.components.switch import (
diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt
index 78121963cf517725081e4ad00c3689f74375c611..2593d34e1b4588def672f7310f5447c6d8c1fc17 100644
--- a/homeassistant/package_constraints.txt
+++ b/homeassistant/package_constraints.txt
@@ -176,3 +176,6 @@ websockets>=11.0.1
 # https://github.com/pysnmp/pysnmp/issues/51
 pyasn1==0.4.8
 pysnmplib==5.0.21
+# pysnmp is no longer maintained and does not work with newer
+# python
+pysnmp==1000000000.0.0
diff --git a/requirements_all.txt b/requirements_all.txt
index ea12f37e0327daec8693c87488a349d7da5aad71..574d6573abefc9d1f50686153cb9b04ae60f9ea2 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -386,7 +386,7 @@ asyncpysupla==0.0.5
 asyncsleepiq==1.3.4
 
 # homeassistant.components.aten_pe
-atenpdu==0.3.2
+# atenpdu==0.3.2
 
 # homeassistant.components.aurora
 auroranoaa==0.0.3
diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py
index 592e8f5a1f0ca20f6d22e5de2201ae58a43225ff..f3479d4778914f827b3f56652d18f804cb50937b 100755
--- a/script/gen_requirements_all.py
+++ b/script/gen_requirements_all.py
@@ -21,6 +21,7 @@ else:
 
 COMMENT_REQUIREMENTS = (
     "Adafruit_BBIO",
+    "atenpdu",  # depends on pysnmp which is not maintained at this time
     "avea",  # depends on bluepy
     "avion",
     "azure-servicebus",  # depends on uamqp, which requires OpenSSL 1.1
@@ -180,6 +181,9 @@ websockets>=11.0.1
 # https://github.com/pysnmp/pysnmp/issues/51
 pyasn1==0.4.8
 pysnmplib==5.0.21
+# pysnmp is no longer maintained and does not work with newer
+# python
+pysnmp==1000000000.0.0
 """
 
 IGNORE_PRE_COMMIT_HOOK_ID = (