Skip to content

Commit

Permalink
remove unneeded load_attrs code in response element
Browse files Browse the repository at this point in the history
  • Loading branch information
MertenF committed Jul 2, 2023
1 parent 7730d48 commit 00c493a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/epos/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ def __repr__(self):
def _load_attrs(self):
self.attr['xmlns'] = self.namespaces['epos-print']
self.attr['success'] = str(self.success).lower()
if self.code:
self.attr['code'] = self.code
self.attr['status'] = str(self.status)
self.attr['battery'] = str(self.battery)
self.attr['code'] = self.code
self.attr['status'] = self.status
self.attr['battery'] = self.battery

def status_msg(self) -> List[str]:
return status.parse_code(self.status)
Expand Down

0 comments on commit 00c493a

Please sign in to comment.