'Get the latest data and updates the state.'

def update(self):

    from cpuinfo import cpuinfo
    self.info = cpuinfo.get_cpu_info()
    self._state = round((float(self.info['hz_actual_raw'][0]) / (10 ** 9)), 2)
