From 75669dba6e6be226f6ea512cf09d413608e77897 Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Mon, 30 May 2022 07:25:35 +0200 Subject: [PATCH] Use `pysnmplib` instead of `pysnmp` (#72645) * Use pysnmp and bump brother * Fix mypy errors * Bump brother version --- homeassistant/components/brother/config_flow.py | 2 +- homeassistant/components/brother/manifest.json | 2 +- homeassistant/components/snmp/manifest.json | 2 +- requirements_all.txt | 4 ++-- requirements_test_all.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/brother/config_flow.py b/homeassistant/components/brother/config_flow.py index 39a196aa6cb..24e7d701ed0 100644 --- a/homeassistant/components/brother/config_flow.py +++ b/homeassistant/components/brother/config_flow.py @@ -42,7 +42,7 @@ class BrotherConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): def __init__(self) -> None: """Initialize.""" - self.brother: Brother = None + self.brother: Brother self.host: str | None = None async def async_step_user( diff --git a/homeassistant/components/brother/manifest.json b/homeassistant/components/brother/manifest.json index aaf1af72db9..e14079f6dd9 100644 --- a/homeassistant/components/brother/manifest.json +++ b/homeassistant/components/brother/manifest.json @@ -3,7 +3,7 @@ "name": "Brother Printer", "documentation": "https://www.home-assistant.io/integrations/brother", "codeowners": ["@bieniu"], - "requirements": ["brother==1.1.0"], + "requirements": ["brother==1.2.3"], "zeroconf": [ { "type": "_printer._tcp.local.", diff --git a/homeassistant/components/snmp/manifest.json b/homeassistant/components/snmp/manifest.json index 76df9e18606..1ffcb04ebda 100644 --- a/homeassistant/components/snmp/manifest.json +++ b/homeassistant/components/snmp/manifest.json @@ -2,7 +2,7 @@ "domain": "snmp", "name": "SNMP", "documentation": "https://www.home-assistant.io/integrations/snmp", - "requirements": ["pysnmp==4.4.12"], + "requirements": ["pysnmplib==5.0.15"], "codeowners": [], "iot_class": "local_polling", "loggers": ["pyasn1", "pysmi", "pysnmp"] diff --git a/requirements_all.txt b/requirements_all.txt index 93c151fd843..53e6e28788e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -433,7 +433,7 @@ bravia-tv==1.0.11 broadlink==0.18.2 # homeassistant.components.brother -brother==1.1.0 +brother==1.2.3 # homeassistant.components.brottsplatskartan brottsplatskartan==0.0.1 @@ -1838,7 +1838,7 @@ pysmarty==0.8 pysml==0.0.7 # homeassistant.components.snmp -pysnmp==4.4.12 +pysnmplib==5.0.15 # homeassistant.components.soma pysoma==0.0.10 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 718e876aa2f..2688d1aa5c1 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -330,7 +330,7 @@ bravia-tv==1.0.11 broadlink==0.18.2 # homeassistant.components.brother -brother==1.1.0 +brother==1.2.3 # homeassistant.components.brunt brunt==1.2.0