Skip to content

Commit

Permalink
Fixed human readable name for py35
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeymaysak committed Oct 22, 2021
1 parent 9798e40 commit 0c41dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wirelesstagpy/sensortag.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ def human_readable_name(self):

hw_revision = hex(self.hw_revision)[2:].upper()
if self.tag_type in names_map:
return f"{names_map[self.tag_type]} rev.{hw_revision}"
return '{} rev.{}'.format(names_map[self.tag_type], hw_revision)

return f"Tag type {self.tag_type} rev.{hw_revision}"
return 'Tag type {} rev.{}'.format(self.tag_type, hw_revision)

@property
def outdoor_probe_has_ambient_temperature(self) -> bool:
Expand Down

0 comments on commit 0c41dec

Please sign in to comment.