Skip to content

Commit

Permalink
Remove create method.
Browse files Browse the repository at this point in the history
EM parameters is a decode-only frame.
  • Loading branch information
denpamusic committed Nov 7, 2023
1 parent 2bc9050 commit 5ce91c4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pyplumio/frames/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ class EcomaxParametersResponse(Response):

frame_type: ClassVar[int] = FrameType.RESPONSE_ECOMAX_PARAMETERS

def create_message(self, data: EventDataType) -> bytearray:
"""Create a frame message."""
return EcomaxParametersStructure(self).encode(data)

def decode_message(self, message: bytearray) -> EventDataType:
"""Decode a frame message."""
return EcomaxParametersStructure(self).decode(message)[0]
Expand Down

0 comments on commit 5ce91c4

Please sign in to comment.