def update(self):
        """Retrieve latest state."""
        try:
            format_str = ('fahrenheit' if self.temp_unit == TEMP_FAHRENHEIT
                          else 'celsius')
            self.current_value = self.temper_device.get_temperature(format_str)
        except __HOLE__:
            _LOGGER.error('Failed to get temperature due to insufficient '
                          'permissions. Try running with "sudo"')
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sensor/temper.py/TemperSensor.update