From 0c41decf109e0a80930842be650ffa20f62d10a4 Mon Sep 17 00:00:00 2001 From: sergeymaysak Date: Fri, 22 Oct 2021 15:46:59 +0300 Subject: [PATCH] Fixed human readable name for py35 --- wirelesstagpy/sensortag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wirelesstagpy/sensortag.py b/wirelesstagpy/sensortag.py index d582dc6..95c1a81 100644 --- a/wirelesstagpy/sensortag.py +++ b/wirelesstagpy/sensortag.py @@ -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: