code: protected static Unit selectExactUnit(String compact, UnitConverter converter) {
      if (compact != null) {
        switch (compact) {
          case "consumption":
            return converter.consumptionUnit();
          case "light":
            return Unit.LUX;
          case "speed":
            return converter.speedUnit();
          case "temp":
          case "temperature":
            return converter.temperatureUnit();
          default:
            break;
        }
      }
      return null;
    }
docs: Some categories only have a single possible unit depending the locale.