Skip to content

Commit

Permalink
Merge pull request #62 from tirkarthi/fix-enum-deprecation
Browse files Browse the repository at this point in the history
Access enum from the Enum class instead of instance which is deprecated since Python 3.10.
  • Loading branch information
Julius2342 committed Mar 8, 2021
2 parents 77b88b6 + 385733b commit bc1d162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyvlx/api/frame_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def create_frame(command):
return FrameNodeStatePositionChangedNotification()
if command == Command.GW_LEAVE_LEARN_STATE_CFM:
return FrameLeaveLearnStateConfirmation()
if command == command.GW_LEAVE_LEARN_STATE_REQ:
if command == Command.GW_LEAVE_LEARN_STATE_REQ:
return FrameLeaveLearnStateRequest()

return None

0 comments on commit bc1d162

Please sign in to comment.