Fix sonar issues in raspberry-pi importer