'Init sensors stats.'

def __init__(self):

    self.init_temp = False
    self.stemps = {}
    try:
        self.stemps = psutil.sensors_temperatures()
    except AttributeError:
        logger.warning('PsUtil    5.1.0    or    higher    is    needed    to    grab    temperatures    sensors')
    except OSError as e:
        logger.error('Can    not    grab    temperatures    sensors    ({})'.format(e))
    else:
        self.init_temp = True
    self.init_fan = False
    self.sfans = {}
    try:
        self.sfans = psutil.sensors_fans()
    except AttributeError:
        logger.warning('PsUtil    5.2.0    or    higher    is    needed    to    grab    fans    sensors')
    except OSError as e:
        logger.error('Can    not    grab    fans    sensors    ({})'.format(e))
    else:
        self.init_fan = True
    self.init_fan = False
    self.reset()
