Add support for Python 3.12 (#101651)
This commit is contained in:
parent
535e2b81ce
commit
ba91aaa28d
28 changed files with 296 additions and 93 deletions
|
@ -1,8 +1,8 @@
|
|||
"""Brother helpers functions."""
|
||||
import logging
|
||||
from __future__ import annotations
|
||||
|
||||
import pysnmp.hlapi.asyncio as hlapi
|
||||
from pysnmp.hlapi.asyncio.cmdgen import lcd
|
||||
import logging
|
||||
import sys
|
||||
|
||||
from homeassistant.const import EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import Event, HomeAssistant, callback
|
||||
|
@ -10,6 +10,10 @@ from homeassistant.helpers import singleton
|
|||
|
||||
from .const import DOMAIN, SNMP
|
||||
|
||||
if sys.version_info < (3, 12):
|
||||
import pysnmp.hlapi.asyncio as hlapi
|
||||
from pysnmp.hlapi.asyncio.cmdgen import lcd
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue