code: def get_current_temperature(self, refresh=False):
          
          if refresh:
              self.refresh()
          try:
              return float(self.get_value('temperature'))
          except (TypeError, ValueError):
              return None
docs: Get current temperature