Skip to content

Commit

Permalink
fix Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
pawlizio committed Nov 24, 2023
1 parent 92e9e70 commit a49b8ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
14 changes: 3 additions & 11 deletions pyvlx/node_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@

from .api.frames import (
FrameGetAllNodesInformationNotification,
FrameGetNodeInformationNotification,
)
FrameGetNodeInformationNotification)
from .const import NodeTypeWithSubtype
from .lightening_device import Light
from .log import PYVLXLOG
from .node import Node
from .on_off_switch import OnOffSwitch
from .opening_device import (
Awning,
Blade,
Blind,
DualRollerShutter,
GarageDoor,
Gate,
RollerShutter,
Window,
)
Awning, Blade, Blind, DualRollerShutter, GarageDoor, Gate, RollerShutter,
Window)

if TYPE_CHECKING:
from pyvlx import PyVLX
Expand Down
7 changes: 2 additions & 5 deletions pyvlx/node_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
from typing import TYPE_CHECKING, Any

from .api.frames import (
FrameBase,
FrameGetAllNodesInformationNotification,
FrameNodeStatePositionChangedNotification,
FrameStatusRequestNotification,
)
FrameBase, FrameGetAllNodesInformationNotification,
FrameNodeStatePositionChangedNotification, FrameStatusRequestNotification)
from .const import NodeParameter, OperatingState
from .lightening_device import LighteningDevice
from .log import PYVLXLOG
Expand Down
3 changes: 1 addition & 2 deletions pyvlx/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ def __str__(self) -> str:
return "ON"
if self.raw == self.from_int(Parameter.OFF):
return "OFF"

return "UNKNOWN"
return "UNKNOWN"


class SwitchParameterOn(SwitchParameter):
Expand Down

0 comments on commit a49b8ac

Please sign in to comment.