'Callback function for sensor updates.'

def sensor_callback(self, var, value):

    _LOGGER.debug('Got    value    from    bridge:    %d    =    %d', var, value)
    from pycomfoconnect import SENSOR_TEMPERATURE_EXTRACT, SENSOR_TEMPERATURE_OUTDOOR
    if (var in [SENSOR_TEMPERATURE_EXTRACT, SENSOR_TEMPERATURE_OUTDOOR]):
        self.data[var] = (value / 10)
    else:
        self.data[var] = value
    dispatcher_send(self.hass, SIGNAL_COMFOCONNECT_UPDATE_RECEIVED, var)
