From 1f94b06ef69452061157e8138cd72b3e1277d902 Mon Sep 17 00:00:00 2001 From: denpamusic Date: Fri, 3 Nov 2023 01:35:06 +0300 Subject: [PATCH] Remove unnecessary check. --- pyplumio/structures/schedules.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pyplumio/structures/schedules.py b/pyplumio/structures/schedules.py index 44473a1f..e5ba3c31 100644 --- a/pyplumio/structures/schedules.py +++ b/pyplumio/structures/schedules.py @@ -5,11 +5,12 @@ from dataclasses import dataclass from functools import reduce from itertools import chain -from typing import TYPE_CHECKING, Final +from typing import Final from pyplumio.const import ATTR_PARAMETER, ATTR_SCHEDULE, ATTR_SWITCH, ATTR_TYPE from pyplumio.devices import Addressable, Device from pyplumio.exceptions import FrameDataError +from pyplumio.frames import Request from pyplumio.helpers.factory import factory from pyplumio.helpers.parameter import ( BinaryParameter, @@ -23,10 +24,6 @@ from pyplumio.structures import Structure from pyplumio.utils import ensure_dict -if TYPE_CHECKING: - from pyplumio.frames import Request - - ATTR_SCHEDULES: Final = "schedules" ATTR_SCHEDULE_PARAMETERS: Final = "schedule_parameters" ATTR_SCHEDULE_SWITCH: Final = "schedule_switch"